adding an .htaccess file via FP

T

Ted

Does anyone know how to add/upload an .htaccess file via FrontPage? -
without corrupting the FP extensions.

I'm hosted (Godaddy) on a Linux server (using apache I think) with FP
extensions enabled.
 
T

Thomas A. Rowe

You need to upload it via a FTP application, not FP.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

Tina Clarke

Ted said:
Does anyone know how to add/upload an .htaccess file via FrontPage? -
without corrupting the FP extensions.

I'm hosted (Godaddy) on a Linux server (using apache I think) with FP
extensions enabled.

You can use ftp ... just don't overwrite any other file only upload that
file.

Tina


--
http://accessfp.net/ - FrontPage Tutorials
http://anyfrontpage.com/ - http://frontpage-ebooks.com/
http://addonfp.com/ - FrontPage Addons
http://frontpage-tips.com/ - Weekly FrontPage Tips
http://msmvps.com/frontpage/ - FrontPage News & Articles Blog
http://frontpage-advice.blogspot.com/ - FrontPage Advice Blog
http://artdoodle.com/ - Abstract Pen and Ink Drawings
 
T

Ted

Hi thanks...

Okay I've accessed my hosting space using an FTP program...

I see an .htaccess file that reads:

# -FrontPage-

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>

Can I add to that file? I have some additional code that I need to
include...but since you said not to overwrite anything...and since an
..htaccess already exists, I'm not sure what to do...
From another post someone suggested that I add:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

So again, can I just add those lines to the existing .htaccess file
created by FP?

Thanks
 
D

David Baxter

Yes. Do it this way:

1. using a 3rd party FTP program, set it to unhide all files (list
hidden files)
2. find the existing .htaccess installed with the FP extensions on the
server, and copy it back to your hard drive
3. APPEND any new lines you want to add to the BOTTOM of the .htacess
file
4. FTP it back to the server (root directory)
 
S

Steve Easton

Do you have a web masters CPanel ??

If so, you can edit the .htaccess file via the File Manager utility.

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

Ted

Oops...spoke to soon. It actually did work...in that I if someone typed
mysite.com they were redirected to www.mysite.com

That part was fine...but when I went back to FP to work on the site
upload...i got an error msg about FP extensions not being installed or
something...then I renamed the .htaccess file to .htaccess1, tried
again, and I could upload again - but of course the redirect thing now
doesn't work...

Any ideas?

Here's the code that I have in the .htaccess file:

# -FrontPage-

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 www.sobbi.com
AuthUserFile
/var/chroot/home/content/r/a/n/randyusa/html/_vti_pvt/service.pwd
AuthGroupFile
/var/chroot/home/content/r/a/n/randyusa/html/_vti_pvt/service.grp

RewriteEngine On
RewriteCond %{HTTP_HOST} ^mysite.com
RewriteRule (.*) http://www.mysite.com/$1 [R=301,L]

I uploaded it via an FTP program as suggested.

Thanks
 
D

David Baxter

I'm not certain about this because I have not tried to use mod_rewrite.
However, I was told by someone else that mod_rewrite will not work for
some reason on a site with FP extensions installed. The informant did
not know why but claimed he had been trying to do this for some time and
had been inquiring in various FP and SEO and other tech forums and was
getting that answer.

The method I use does work for other .htaccess commands though,
including redirects.
 

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