FiRe
11-09-05, 06:01 AM
I know this isn't php/mysql but its apache related so it just about qualifies :D
I have a folder called "tutorials" and tutorial ID 25 looks like this:
www.site.com/tutorials/index.php?tutid=25
Now i have put this inside the tutorials folder in a .htaccess file:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^tutorials/(.*)$ index.php?tutid=$1
So that people can go to:
www.site.com/tutorials/25/
But I get a 404 error. I have also changed the rewrite code to this:
RewriteRule ^/(.*)$ index.php?tutid=$1
But the same error. Whats wrong with it??
I have a folder called "tutorials" and tutorial ID 25 looks like this:
www.site.com/tutorials/index.php?tutid=25
Now i have put this inside the tutorials folder in a .htaccess file:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^tutorials/(.*)$ index.php?tutid=$1
So that people can go to:
www.site.com/tutorials/25/
But I get a 404 error. I have also changed the rewrite code to this:
RewriteRule ^/(.*)$ index.php?tutid=$1
But the same error. Whats wrong with it??