groundwar Posted August 17, 2007 Share Posted August 17, 2007 I'll be honest. I don't know wtf I'm doing. All I want to get done is to redirect all .html, .php, .htm files to index.php EXCEPT a form handler called sol.php (heh, heh). And I only want to allow same domain referrers to the sol.php, so no-one can post from offsite. I got the first bit working, but just get 500's for everything after I try and add. Little help please? Cheers! RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php Quote Link to comment Share on other sites More sharing options...
groundwar Posted August 17, 2007 Author Share Posted August 17, 2007 Here's where I'm at? WTF? RewriteEngine On RewriteRule ^(index\.php|softoutlaw\.php) - [NC,L] ##RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php [L] 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.