Jump to content

Recommended Posts

Posted

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 ?

Posted

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]

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.