Forum Moderators: phranque

Message Too Old, No Replies

.htaccess and FrontPage issue

.htaccess and Frontpage issue

         

Bibble

6:25 pm on Sep 8, 2005 (gmt 0)



Hi folks,
Nice site by the way, stumbled on this one and it has really helped me out alot.

I am stuck on a problem with a .htaccess file I built and Microsoft FrontPage. My .htaccess file is designed to redirect a problem child to a specific webpage in my site for blocking and tracking purposes. The file works great, however I notice when I implement the file, I get a 403 forbidden error when I attempt to open or maintain my website using FrontPage. The site can be viewed by everyone externally except the blocked user and I can even FTP to my domain folder. FrontPage will function if the file is absent I notice. Here is my entire .htaccess file(swapped IP and web information for privacy reasons):

RewriteEngine On
RewriteCond %{REMOTE_ADDR} ^123\.456\.789\.123$
RewriteRule .* [mysite.com...] [R,L]

Can someone please tell me if I am missing an extra RewriteCond to allow my IP in there? and if so, what would my new syntax be for that line? Help is greatly appreciated thanks guys.

-David

jdMorgan

1:13 am on Sep 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



David,

Welcome to WebmasterWorld!

FrontPage and 'custom' .htaccess files don't get along with each other very well. You may have deleted entries in your .htaccess files that FrontPage needs in order to work.

You'll need to restore the original file, and then add your changes to that.

In addition, you'll need to replace:


Options None

-with-

Options +FollowSymLinks

to the .htaccess file in every FrontPage directory/subdirectory (these start with "_vti_").

The code you posted would probably work as expected, except for these complicating factors.

For more information, read this thread: [webmasterworld.com...]

Jim

BarryStCyr

1:59 am on Sep 9, 2005 (gmt 0)

10+ Year Member



Jim,

I want to thank you and WebMasterWorld for helping me fix a problem that has plagued me for months. I was having to use my shell account to swap a .htaccess file that didn't do rewrites for the one that did and then going back again every time I wanted to publish.

Luckily publishing didn't take long, but my site was down every time I published.

Thanks again
Barry