marcus Posted February 3, 2007 Share Posted February 3, 2007 Well, I just started working with mod rewrite and I'm not sure if it's what I'm doing, or what the file is doing. RewriteEngine On RewriteRule ^([^/]*)/$ /private/$1.php [L] RewriteRule ^/script/([^/]*)$ /private/scripts.php?script=$1 [L] DirectoryIndex /private/home.php ErrorDocument 403 /private/403.shtml ErrorDocument 404 /private/404.shtml That's my htaccess. The problem is when I go to url.com/scripts/whatever/ It will say it doesn't exist. Quote Link to comment Share on other sites More sharing options...
steveclondon Posted February 5, 2007 Share Posted February 5, 2007 try taking the first forward slash out so ^/script will become this ^script Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.