04-22-2009, 10:07 AM
|
#1 (permalink)
|
|
The Contributor
Join Date: Mar 2009
Posts: 49
Thanks: 0
|
Problems with .htaccess URL Rewrite
After getting my head exploding for several times, I decided that I should cry for help here, hopefully someone will be able to help me.
I have a .htaccess file as below:
Code:
RewriteEngine On
RewriteBase /fd/var/www/vhosts/ok/ok/manga/
RewriteCond %{REQUEST_URI} !^/manga/mangas/.*$ [NC]
RewriteCond %{REQUEST_URI} !^/fd/var/www/vhosts/ok/ok/manga/index\.php.*$ [NC]
RewriteRule ^([^/.]+)/([^/.]+)/([0-9]+)(/?)$ /fd/var/www/vhosts/ok/ok/manga/index.php?manga=$1&chapter=$2&page=$3 [L]
RewriteRule ^([^/.]*)(/?)$ /fd/var/www/vhosts/ok/ok/manga/index.php?manga=$1 [L]
RewriteRule ^([^/.]+)/([^/.]+)(/?)$ /fd/var/www/vhosts/ok/ok/manga/index.php?manga=$1&chapter=$2 [L]
RewriteRule ^([^/.]+)/genre/(.*)$ /fd/var/www/vhosts/ok/ok/manga/index.php?manga=$1&genre=$2 [L]
RewriteRule ^([^/.]+)/author/(.*)$ /fd/var/www/vhosts/ok/ok/manga/index.php?manga=$1&author=$2 [L]
RewriteRule ^([^/.]+)/artist/(.*)$ /fd/var/www/vhosts/ok/ok/manga/index.php?manga=$1&artist=$2 [L]
RewriteRule ^([^/.]+)/status/(.*)$ /fd/var/www/vhosts/ok/ok/manga/index.php?manga=$1&status=$2 [L]
When I request /fd/var/www/vhosts/ok/ok/manga/...Blabla it will return 404 not found, if I remove the '.'s in those [^/.], I will get 500 saying that too many redirects. What exactly is the problem?
|
|
|
|