Frontpage 2003, htaccess, and redirects

J

Joe Siegler

I use Frontpage 2003 on my local computer, and on my server, I have
the FP extensions (forget what version, but it's the most recent, as
far as I know).

Anyway, I recently implemented something on the server to prevent
people from leeching our bandwith. Basically I added some stuff to
the htaccess file that FP originally set up. Once I put this stuff
in, Frontpage doesn't recongize that there are extensions installed
there.

If I back the code I added from the htaccess file, and reupload,
Frontpage sees the extensions and all is well. Problem is that I
want the redirect stuff in there.

Is there any way to make the two co-exist? I'm thinking I'm going to
have to upload an htaccess file without the redirect stuff, do my
publishing, and then restore the one with the redirect stuff. I'd
rather not have to do all that.

For the record, here's the stuff I added to the htaccess file:

RewriteEngine On
RewriteCond %{REMOTE_ADDR} !^192.168\..*
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.3drealms.com [NC]
RewriteCond %{HTTP_REFERER} !^http://3drealms.com [NC]
RewriteCond %{REQUEST_URI} !^/bandwithleech.jpg
RewriteRule [^/]+.(gif|jpg|png|GIF|JPG|PNG)$
http://www.3drealms.com/bandwithleech.jpg

(The last line is being split when I post it here. It's not like that
in my real file).
 
S

Steve Easton

Not the answer you're looking for, but since you're hosting on an Apache
server, If they have the web master Cpanel have you checked to see if it has
"Hot link protection"?? If there it's under Advanced menu.

Also .htaccess file lives in more than one place on an Apache server. Do
they all need editing??


--
Steve Easton
MS MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top