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 Link to comment https://forums.phpfreaks.com/topic/65421-wtf-am-i-doing-wrong-efffff/ 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] Link to comment https://forums.phpfreaks.com/topic/65421-wtf-am-i-doing-wrong-efffff/#findComment-326711 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.