I have some rewrite rules like this
- Code: Select all
RewriteEngine On
Options +FollowSymLinks
RewriteRule ^([a-zA-Z0-9]+)/?$ ?hal=$1 [QSA,L]
RewriteRule ^([a-zA-Z0-9]+)/([0-9]+)/?$ ?hal=$1&id=$2 [QSA,L]
RewriteRule ^([a-zA-Z0-9]+)/([0-9]+)/detail/([0-9]+)/?$ ?hal=$1&id=$2&detail=$3 [QSA,L]
i have a problem went i click my link
example:
i have 2 link here
1. http://localhost/collection/news
2. http://localhost/collection/news/2
if i click a link number 1 the url will be normal
--> http://localhost/collection/news
and if i click a link number 2 the url will still normal
--> http://localhost/collection/news/2
but when i click again link number 1, then my link have some problem like this
--> http://localhost/collection/news/news/2
Is there anyone can help me.
Thanks