Welcome to WebmasterWorld Guest from 184.73.3.107

Forum Moderators: open

Frontpage with mod_rewrite on apache 403 probs

   
5:09 pm on Feb 27, 2006 (gmt 0)

10+ Year Member



I've got a simple web site (large, but simple - NO subwebs) and just want to keep other sites from hotlinking my files... I added the code below, which stops my files from being directly accessible when other sites try to hotlink them, but when this code is in my .htaccess file (in my root web dir /httpdocs) I can no longer load the site up with FrontPage - and my web search form no loner works (simple for where users can enter text to search within the site for pages containing that text). Here's the code I have so far:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} .*jpg$¦.*gif$¦.*png$ [NC]
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!mydomain\.com [NC]
RewriteRule (.*) [F]

Is there any lines I'm missing so that I can open the site up with frontpage for editing? (and preferrably so the "search the site" form works as well)

5:21 pm on Feb 27, 2006 (gmt 0)

WebmasterWorld Senior Member jimbeetle is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Start with post #183 in this thread [webmasterworld.com] and see if that gets you started along the right line.
5:25 pm on Feb 27, 2006 (gmt 0)

5+ Year Member



See this thread

[webmasterworld.com...]

It helped me.
Barry

5:32 pm on Feb 27, 2006 (gmt 0)

5+ Year Member



I think Jim meant post #43

Barry

7:36 pm on Feb 27, 2006 (gmt 0)

WebmasterWorld Senior Member jimbeetle is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Duh! Yep, you're right, Barry.
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month