- Code: Select all
RewriteEngine On
RewriteRule ^(.*)/([0-9]{10}) main.php?ucat=$1&subaction=showfull&id=$2 [QSA]
RewriteRule ^link-([a-z]+)\.html$ main.php?bla,$1,go
RewriteRule ^(.[^/]+)/(.[^/]+)\.html$ main.php?bla,$1,$2 [L]
The second line after "RewriteEngine On" is for CuteNews, so that the news become more 'friendly' like http://bla.net/1/234241234 and it works.
The third line is for redirecting links...and it works.
The last line is for general content and it seems to work.
But whenever I request a regular file in a sub-directory like http://bla.net/test/bleh.html I am redirected to the main page! Even though the file exists. What's wrong? Am I doing anything wrong?
Any advice or help is welcome.