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

But some rules does not work. For example:

There is a problem with url which include

Anyone can help me?

Aucun commentaire:

Enregistrer un commentaire