Jump to content

Ajutor !!! Pagina afisata aiurea...


tarkan

Recommended Posts

  • 1 year later...

Rezolvat intre timp..... alta problema:

Cum fac url-ul asta friendly:

http://www.motodor.ro/cautare.php?Latime=205&Inaltime=55&Diametru=R16&Anotimp=vara&Producator=Producator

http://www.motodor.ro/cautare.php?Latime=205&Inaltime=55&Diametru=R16&Anotimp=vara&Producator=Producator&pag=2

rewrite sau redirect.....sau ....

url rezultat in urma unei cautari dupa features in baza de date cu GET

as prefera sa rezulte ceva de forma ....motodor.ro/anvelope/205-55-R16-vara-dunlop (adica: ) ....motodor.ro/anvelope/latime-inaltime-diametru-anotimp-producator

e posbil? mi-ar fi de mare ajutor sa il transform in url static.

Link to comment
Share on other sites

  • 2 weeks later...

deci in .htaccess se pun urmatoarele linii:

Options +FollowSymlinks
RewriteEngine on

care ar trebui sa existe deja daca ai activat friendly url si apoi regulile:

RewriteRule ^anvelope-([0-9]+)-([0-9]+)-([a-zA-Z]+)-([a-zA-Z]+)-([a-zA-Z]+) cautare.php?Latime=$1&Inaltime;=$2&Diametru;=$3&Anotimp;=$4&Producator;=$5
(sa incapa aia de sus pe o linie!!!)

deci in loc de:
http://www.motodor.ro/cautare.php?Latime=205&Inaltime=55&Diametru=R16&Anotimp=vara&Producator=dunlop

accesezi
http://www.motodor.ro/anvelope-205-55-R16-vara-dunlop

daca nu reusescti cauta-ma pe yms si facem impreuna. eu am reusit :D
apropo... mai trebuie sa ai activat modulul mod_rewrite la apache!

Bye

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...