Welcome to WebmasterWorld Guest from 54.162.107.231

Forum Moderators: open

Message Too Old, No Replies

Frontpage with mod_rewrite on apache 403 probs

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

New User

10+ Year Member

joined:May 14, 2003
posts:3
votes: 0


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)

Senior Member

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

joined:Oct 26, 2002
posts:3292
votes: 6


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)

Junior Member

10+ Year Member

joined:June 2, 2005
posts:112
votes: 0


See this thread

[webmasterworld.com...]

It helped me.
Barry

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

Junior Member

10+ Year Member

joined:June 2, 2005
posts:112
votes: 0


I think Jim meant post #43

Barry

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

Senior Member

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

joined:Oct 26, 2002
posts:3292
votes: 6


Duh! Yep, you're right, Barry.