homepage Welcome to WebmasterWorld Guest from 54.196.24.103
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
Frontpage with mod_rewrite on apache 403 probs
z0diac




msg:933439
 5:09 pm on Feb 27, 2006 (gmt 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)

 

jimbeetle




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

Start with post #183 in this thread [webmasterworld.com] and see if that gets you started along the right line.

BarryStCyr




msg:933441
 5:25 pm on Feb 27, 2006 (gmt 0)

See this thread

[webmasterworld.com...]

It helped me.
Barry

BarryStCyr




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

I think Jim meant post #43

Barry

jimbeetle




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

Duh! Yep, you're right, Barry.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved