Bobafart
12-28-2007, 05:13 AM
I thought this would be a simple solution .. but it doesn't work
keep getting an error 404
If the user clicks the link <a href="http://www.foo.com/science/">click me</a> I want it to execute this script: http://www.foo.com/newscategories/index.php?newsCategory=science
instead I get an error 404
there is no actual directory called "science" on my server
the mod_rewrite:
Options +FollowSymLinks
SecFilterInheritance Off
RewriteEngine On
RewriteRule ^/([^/]+)/?$ /newscategories/index.php?newsCategory=$1 [QSA,L]
The above code keeps giving a 404 error.
------------
Interestingly the below code works.. however I don't want to URL http://www.foo.com/foobar/science :(
Options +FollowSymLinks
SecFilterInheritance Off
RewriteEngine On
RewriteRule ^foobar/([^/]+)/?$ /newscategories/index.php?newsCategory=$1 [QSA,L]
help would be appreciated
thanks
keep getting an error 404
If the user clicks the link <a href="http://www.foo.com/science/">click me</a> I want it to execute this script: http://www.foo.com/newscategories/index.php?newsCategory=science
instead I get an error 404
there is no actual directory called "science" on my server
the mod_rewrite:
Options +FollowSymLinks
SecFilterInheritance Off
RewriteEngine On
RewriteRule ^/([^/]+)/?$ /newscategories/index.php?newsCategory=$1 [QSA,L]
The above code keeps giving a 404 error.
------------
Interestingly the below code works.. however I don't want to URL http://www.foo.com/foobar/science :(
Options +FollowSymLinks
SecFilterInheritance Off
RewriteEngine On
RewriteRule ^foobar/([^/]+)/?$ /newscategories/index.php?newsCategory=$1 [QSA,L]
help would be appreciated
thanks