PC Review Forums Newsgroups Microsoft Word Microsoft Frontpage adding an .htaccess file via FP

Reply

adding an .htaccess file via FP

 
Thread Tools Rate Thread
Old 17-08-2005, 09:00 PM   #1
Ted
Guest
 
Posts: n/a
Default adding an .htaccess file via FP


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.

  Reply With Quote
Old 17-08-2005, 11:01 PM   #2
Andrew Murray
Guest
 
Posts: n/a
Default Re: adding an .htaccess file via FP

I assume you can upload the file in the normal manner through frontpage.

"Ted" <occasionaluse@hotmail.com> wrote in message
news:1124312404.655044.252590@g43g2000cwa.googlegroups.com...
> 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.
>



  Reply With Quote
Old 17-08-2005, 11:08 PM   #3
Thomas A. Rowe
Guest
 
Posts: n/a
Default Re: adding an .htaccess file via FP

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.
==============================================

"Andrew Murray" <Noadmurray@SPAMiinet.net.au> wrote in message
news:4303c1d5$0$21089$5a62ac22@per-qv1-newsreader-01.iinet.net.au...
>I assume you can upload the file in the normal manner through frontpage.
>
> "Ted" <occasionaluse@hotmail.com> wrote in message
> news:1124312404.655044.252590@g43g2000cwa.googlegroups.com...
>> 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.
>>

>
>



  Reply With Quote
Old 18-08-2005, 12:52 AM   #4
Tina Clarke
Guest
 
Posts: n/a
Default Re: adding an .htaccess file via FP


"Ted" <occasionaluse@hotmail.com> wrote in message
news:1124312404.655044.252590@g43g2000cwa.googlegroups.com...
> 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


  Reply With Quote
Old 18-08-2005, 01:01 AM   #5
Ted
Guest
 
Posts: n/a
Default Re: adding an .htaccess file via FP

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

  Reply With Quote
Old 18-08-2005, 06:38 AM   #6
David Baxter
Guest
 
Posts: n/a
Default Re: adding an .htaccess file via FP

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)



"Ted" <occasionaluse@hotmail.com> wrote in message
news:1124312404.655044.252590@g43g2000cwa.googlegroups.com...
> 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.
>



  Reply With Quote
Old 18-08-2005, 02:18 PM   #7
Steve Easton
Guest
 
Posts: n/a
Default Re: adding an .htaccess file via FP

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

"Ted" <occasionaluse@hotmail.com> wrote in message
news:1124312404.655044.252590@g43g2000cwa.googlegroups.com...
> 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.
>



  Reply With Quote
Old 18-08-2005, 05:02 PM   #8
Ted
Guest
 
Posts: n/a
Default Re: adding an .htaccess file via FP

Thanks...that worked

  Reply With Quote
Old 19-08-2005, 12:06 AM   #9
Ted
Guest
 
Posts: n/a
Default Re: adding an .htaccess file via FP

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

  Reply With Quote
Old 19-08-2005, 04:18 PM   #10
David Baxter
Guest
 
Posts: n/a
Default Re: adding an .htaccess file via FP

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.

"Ted" <occasionaluse@hotmail.com> wrote in message
news:1124409986.385480.258850@g43g2000cwa.googlegroups.com...
> 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
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off