a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

FrontPage Form w/ .htaccess RewriteEngine On

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> FrontPage Form w/ .htaccess RewriteEngine On
Page: [1]
 
BobbyDouglas

 

Posts: 5479
Joined: 5/15/2003
From: Arizona
Status: offline

 
FrontPage Form w/ .htaccess RewriteEngine On - 4/30/2005 22:05:18   
I have noticed that if you have a .htaccess file with the code to turn the RewriteEngine on, FrontPage forms will NOT work.

Simply adding
RewriteEngine on
to the .htaccess file, FP forms produce a 403 error. If you take it out, the form works perfectly fine.

Anyone know of a fix for this?


< Message edited by BobbyDouglas -- 10/18/2006 12:06:10 >


_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge
BobbyDouglas

 

Posts: 5479
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: FrontPage From w/ .htaccess RewriteEngine On - 5/1/2005 16:43:09   
Here is a bit of info, but it doesn't seem to work: http://www.msfrontpage.net/fp/apache_rewite_engine_with_frontpage.htm

_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to BobbyDouglas)
BobbyDouglas

 

Posts: 5479
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: FrontPage From w/ .htaccess RewriteEngine On - 5/2/2005 10:06:06   
Any clues? Suggestions where else I could post to find an answer?

I really would like to resolve this...

_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to BobbyDouglas)
Kitka

 

Posts: 2520
Joined: 1/31/2002
From: Australia
Status: offline

 
RE: FrontPage From w/ .htaccess RewriteEngine On - 8/29/2005 4:44:30   
quote:

Any clues?


Hi Bobby,

I don't know if you already found an answer, as your question was posted a few months ago with no follow-up.

However, I have just recently been researching how to get the RewriteEngine to work with FrontPage Extensions myself. Usually when I add "RewriteEngine On" to the root .htaccess file it causes FP to not allow publishing, or opening live a web or sub-web ... and it throws up a 403 error.

With some experimentation I have found the following to work for me ...

1. Add this code after the default FrontPage entries in the .htaccess file in your domain's root directory:

Options +FollowSymLinks -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
---Replace this whole line with your custom Mod_rewrite Rules---
</IfModule>


2. Edit the .htaccess files in each of the following three directories:
_vti_bin
_vti_bin /_vti_adm
_vti_bin/ _vti_aut


In them all, replace the existing line of code "Options None" to read:

Options +FollowSymLinks


If "Options None" is missing, simply add the above line of code.

If you have any FrontPage Sub-webs, repeat Step 2 in all your Sub-webs plus add the same line of code to the .htaccess file in the Sub-web's root directory (any mod_rewrite rules specified in the domain root will automatically cover the sub-webs, so do not need to be repeated).

I have no FrontPage forms, so I don't know if this info will solve your problem, but it has allowed publishing and editing with FrontPage for me while allowing the use of Apache mod_rewrite rules.

I hope this helps you, or someone else, as it is a problem I have struggled with intermittently for a few years.

<edited for clarity>

< Message edited by Kitka -- 8/29/2005 6:08:07 >


_____________________________

Kitka
**It is impossible to make anything foolproof because fools are so ingenious.**


(in reply to BobbyDouglas)
BobbyDouglas

 

Posts: 5479
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: FrontPage From w/ .htaccess RewriteEngine On - 8/29/2005 12:30:14   
Hey Kitka,

I found an answer, although it wasn't that great of a solution so I never came back to update the thread.

quote:

Options +FollowSymLinks -Indexes

- Why the need for -Indexes?

quote:

2. Edit the .htaccess files in each of the following three directories:

- I thought there were more than the three .htaccess files. I think I counted 7 of them last time I was trying to fix this. It might be that the three .htaccess files are what control the publishing sector of the FPSE, and that editing the others will allow the forms, counters, etc., to function.

I ended up switching over to a Simple PHP Contact Form that made my life much easier. I hated how the FP code would display in my page, but I really wanted to continue to use the FPSE.

Appreciate the solution Kitka, maybe someday everything will be solved without having to resort to these hacks. What's funny is that the solution is the same one on the link posted in my first thread, it just didn't seem to work for me when I tried it awhile ago.

_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to Kitka)
Kitka

 

Posts: 2520
Joined: 1/31/2002
From: Australia
Status: offline

 
RE: FrontPage From w/ .htaccess RewriteEngine On - 8/29/2005 17:00:27   
quote:

- Why the need for -Indexes?

Personal setting. My original .htaccess had:

Options All -Indexes

because I don't want visitors to be able to list files in a directory, and allowing Indexing is a default on our server. I wasn't certain if leaving it as is would work, so I changed it to:

Options +FollowSymLinks -Indexes

Maybe I'll experiment some more with "All" as the setting.

quote:

- I thought there were more than the three .htaccess files


There is, but I changed only as many as I needed to allow me to open a web live and publish from my computer. I don't use counters or FP forms, so I haven't worked out which files need to be edited for those to function properly when using mod_rewrite.

quote:

I ended up switching over to a Simple PHP Contact Form that made my life much easier.


I've been using a php form for over 18 months, as it is infinitely more secure than the FP one, plus doesn't display an email address to the harvesters.

quote:

What's funny is that the solution is the same one on the link posted in my first thread, it just didn't seem to work for me when I tried it awhile ago.


It is similar, but not the exactly the same. If I don't use the
<IfModule mod_rewrite.c>...</IfModule> code, FP throws a 403 error. I had to research much further afield to find my method. YMMV.

_____________________________

Kitka
**It is impossible to make anything foolproof because fools are so ingenious.**


(in reply to BobbyDouglas)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> General Web Development >> FrontPage Form w/ .htaccess RewriteEngine On
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts