Jump to content
Sign in to follow this  
alexinio3d

Crearea Fisierului .htaccess Pe Mai Multe Linkuri Friendly

Recommended Posts

Salutare dinou...
Am intampinat o problema cu crearea fisierului .htaccess.
Problmea ii ca la linkurile cu fisierul sesstore.php merge cum trebuie si cand am incercat cu fisierul showitem.php nu a mai mers.
Asa am scris fisierul .htaccess:

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*?)/(.*?).html$ seestore.php?lang=$1&cat_produs=$2 [NC,L]
RewriteRule ^(.*?).html$ seestore.php?cat_produs=$1 [NC,L]
RewriteRule ^(.*?)/(.*?).html$ showitem.php?lang=$1&produs=$2 [NC,L]

Cand acceses linkul:

 http://domeniu.ro/ro/LeagÄne copii.html

" target="_blank numi arata nimica,

 

dar cand accesez :

http://domeniu.ro/showitem.php?lang=ro&produs=LeagÄne mijlocii

" target="_blank imi arata cum trebuie.

Imi puteti spune la ce am gresit la configurarea .htacces ?

Share this post


Link to post
Share on other sites

Tu ai pus aceiasi conditie pentru ambele link-uri! Fa ceva de genu asta:

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^seestore/(.*?)/(.*?).html$ seestore.php?lang=$1&cat_produs=$2 [NC,L]
RewriteRule ^(.*?).html$ seestore.php?cat_produs=$1 [NC,L]
RewriteRule ^showitem/(.*?)/(.*?).html$ showitem.php?lang=$1&produs=$2 [NC,L]

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...