Jump to content

Mod rewrite help


marcus

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.