homepage Welcome to WebmasterWorld Guest from 23.23.8.131
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
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

10+ Year Member



 
Msg#: 1393 posted 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

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



 
Msg#: 1393 posted 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

5+ Year Member



 
Msg#: 1393 posted 5:25 pm on Feb 27, 2006 (gmt 0)

See this thread

[webmasterworld.com...]

It helped me.
Barry

BarryStCyr

5+ Year Member



 
Msg#: 1393 posted 5:32 pm on Feb 27, 2006 (gmt 0)

I think Jim meant post #43

Barry

jimbeetle

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



 
Msg#: 1393 posted 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved