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. Link to comment https://forums.phpfreaks.com/topic/36871-mod-rewrite-help/ 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 Link to comment https://forums.phpfreaks.com/topic/36871-mod-rewrite-help/#findComment-177262 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.