Jump to content

WTF am I doing wrong efffff


groundwar

Recommended Posts

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

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]

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.