i redirected my http:// to http://www. but this seems to cause a problem with frontpage. i can't upload my files to the server using the Publish Web option, to the url http:// as the url cannot be found. tried to upload to http://www but didn't work. seems i have to disable 301 redirect each time i upload. is there a better alternative, this is getting kind of irritating.
Did you replace or add to the existing file? FrontPage can be onery about most things and the .htaccess file is one of them. Since I gave up on using it to publish about 30 days after I bought it I can't recall the details. That was 6 years ago.
i add to the existing files. heres the code ErrorDocument 404 /error/404.html #301 redirect RewriteEngine on RewriteCond %{HTTP_HOST} . RewriteCond %{HTTP_HOST} !^www\.healthsession\.com RewriteRule (.*) http://www.healthsession.com/$1 [R=301,L]
If you added that line remove it and you should be fine. Now maybe FP put that in there for some reason but that is nothing I have ever seen before. I think the error handler line is proper syntax. I would have to look it up to be sure. Edit: is correct if your file 404.html is located in a directory named error. If it is in the root directorty, delete /error from that line. The complete and proper syntax is ErrorDocument 404 http://www.domainname.com/directory/filename and the http://domainname.com may be omitted for a 404.
I apologize. I misread that whole thing. I did not catch that you were using FP to publish the web. I hate that software! Change your publishing destination to to the one you redirected to, the one you want to use. If FP won't let you do contact MS. That program is their virus.