Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

.htacess for Feedback

wenwon
Minted
Posted on Dec 15, '07 at 01:35 am

Hi,

I’ve never worked with an .htaccess file before. I was wondering if someone could look at my .htaccess file and tell me if it looks correct. I looked through the forums and I couldn’t find anyone that showed their whole installation. I’ve pasted the commands one space below the ip deny command:

order allow,deny allow from all

deny from 74.79.102.171

Start Feedback rules

RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} !FB_secret=47f9b7$ RewriteRule ^rss.xml/?$ /mint/pepper/hansvankilsdonk/feedback/tracker.php?FB_feed=http://facekitty.com/rss.xml&FB_secret=47f9b7&%{QUERY_STRING} [L]

End Feedback rules

SDJL
Minted
Posted on Dec 15, '07 at 10:29 am

You need to space out a little more and comment out some bits. Try this:

Order Allow,Deny
Deny from 74.79.102.171
Allow from all

# Start Feedback rules

RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} !FB_secret=47f9b7$ RewriteRule ^rss.xml/?$ /mint/pepper/hansvankilsdonk/feedback/tracker.php?FB_feed=http://facekitty.com/rss.xml&FB_secret=47f9b7&%{QUERY_STRING} [L]
# End Feedback rules
wenwon
Minted
Posted on Dec 15, '07 at 12:16 pm

I had it more spaced out but I guess when I pasted it here, the brackets disappeared. To be clear, should the feedback rules go exactly one line below my ip deny access commands or should I put a space in there? Thanks in advance.

SDJL
Minted
Posted on Dec 16, '07 at 07:47 am

As long as they’re on a seperate line, it doesn’t really matter. I space it out for clarity and future reference.

wenwon
Minted
Posted on Dec 16, '07 at 10:37 am

Excellent, thanks

You must be logged in to reply. Login above or create an account