.htaccess file with FrontPage Server Extensions
Tutorials for 301 Redirects
Basic 301 Redirects
301 Permanent Redirect
Advanced Help With 301 Redirects
Editing .htaccess file with FPSE Installed
If you have FPSE installed on your server and wish to upload an .htaccess file to create a 301 permanent redirect or specify a custom error page, you need to exercise caution. There is already an .htaccess file in place on the server if you are using FPSE. It will look something like this -
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* <Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit>
AuthName www02 AuthUserFile /mmm1420/web/hous78/_vti_pvt/service.pwd AuthGroupFile /mmm1420/web/hous78/_vti_pvt/service.grp
Any code you add to your .htaccess file MUST be added AFTER the above code. Examples would be:
ErrorDocument 404 http://www.houseofoak.com/custom-error.html
Redirect 301 /aboutus.htm http://www.houseofoak.com/about-us.htm
You will NOT be able to see the .htaccess file from within your Remote Listing in FrontPage. If you open the site in your ftp program you will see the .htaccess file.
- First, download the existing .htaccess file from your server.
- Second, add the additional code BELOW what is already there being careful NOT to mess up what is there.
- Third, upload the modified file replacing the one currently on the server.
- Most importantly, double check to make sure it works. Try the old url and make sure it redirects to the current page. Try a url that you know does NOT exist to see if your custom error page works.
From Ernie Secrest of Sea Crest Hosting: If you try and do anything with a FollowSymbolicLinks like a Mod Rewrite then one must also modify their _vti_bin .htaccess files There are 3 and they need the first line changed or added
Options +FollowSymlinksoriginally is says there Options None if the line is there.
This allows the extensions to authorize you as a user to publish etc.
Also, if you build subwebs, you must also add that line to the 3 .htaccess
files in the _vti_bin of each subweb
For step-by-step instructions .htaccess and Mod Rewrites in FrontPage - Sea Crest Hosting