one doubt about friendly urls+php
| From: | Raquel Arnold Rodrigues | Date: | Fri, 15 May 2009 02:29:30 +0000 |
| Subject: | one doubt about friendly urls+php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-4777@lists.php.net to get a copy of this message | ||
Hello.. I am from Brazil and I am trying make friendly urls using the server
apache and the file .htaccess
I already search in many places the answer, but I didn't find, asked to many
people and nothing. ok lets go:
my code (.htaccess):
RewriteRule ^([A-Za-z0-9-]+)/?$ index.php?menu=$1 [NC,L]
RewriteRule ^([A-Za-z0-9-]+)/?([A-Za-z0-9-]+)/?$
index.php/?menu=$1&submenu=$2 [NC,L]
If I call it <a href="./loja"> the page open normally..
but if I call <a href="./loja/y"> only some elements in the page load= error
and other thing
If I put this form:
RewriteRule ^([A-Za-z0-9-]+)/?$ index.php?menu=$1 [NC,L]
RewriteRule ^([A-Za-z0-9-]+)&?([A-Za-z0-9-]+)/?$
index.php/?menu=$1&submenu=$2 [NC,L]
and I call <a href="./loja&y"> it's right, the page open right
but I dont want the symbol "&" .. I want a bar "/"
Have you some idea "why" is happen?
Thanks for your attention
I wait a return
Regards,
--
Raquel
Formada em Ciência da Computação pela Universidade Estadual de Maringá (UEM)
Pos-graduanda em desenvolvimento orientado a objetos em Java do Centro
Universitário de Maringá (CESUMAR)