mardi 28 avril 2015

URL rewrite rules with Apache

I have a .htaccess file like this:

RewriteEngine On

RewriteRule ^([\w-]+)/([\w-]+)/?$ profile.php?username=$1&w=$2 [QSA,L]
RewriteRule ^([\w-]+)/?$ profile.php?username=$1 [QSA,L]
RewriteRule ^p/timeline timeline.php [NC,L]
RewriteRule ^p/notifications notifications.php [NC,L]

I can use my url like this

http://ift.tt/1gQRvOD
or
http://ift.tt/1DT7XYj

But some rules does not work. For example:

http://ift.tt/1DUhZs8

There is a problem with url which include mysite.com/p/..

Anyone can help me?

Aucun commentaire:

Enregistrer un commentaire