FrontPage and .htaccess

V

Viken Karaguesian

Hello,

Is there a way to edit my htaccess file AND use the Frontpage
Extensions? I recently made a few changes to my htaccess file using my
web host's web-based control panel. The changes worked well, but
FrontPage suddenly couldn't "see" my website, claiming 1) There is no
website at my location, and 2) Sharepoint services were not installed.

When I removed the changes I made, FrontPage was OK again, publishing
without a problem. I know that there can be only one .htaccess file.
How can I edit the file without disrupting my Frontpage
publishing/extensions?

I searched the Microsoft Knowledge base and couldn't find anything
directly relevant to this.

Thanks in advance.
 
S

Steve Easton

What are you trying to do that makes you want to modify the .htaccess file??

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

Dan G

You cannot use re-directs in the root directory htaccess. FP extensions will
not allow it. The work around is to put your files in a sub-directory, where
you can use any htaccess stuff you wish. Hope that made sense. The FP issue
is only with the root directory.
 
V

Viken Karaguesian

What are you trying to do that makes you want to modify the .htaccess

I was trying to do a redirect using the mod_rewrite command. My domain is a
subdomain of another domain and I don't want people to be able to use the
other domain. I want to prevent "www.mydomain.otherdomain.com"
 
V

Viken Karaguesian

You cannot use re-directs in the root directory htaccess. FP extensions
will
not allow it. The work around is to put your files in a sub-directory,
where
you can use any htaccess stuff you wish.

I thought there could only be one .htaccess file per domain? I'm new to
htaccess, so I'm not sure about this.

BTW, how did you know I was doing a redirect? I didn't mention it in my
original post.
 
W

Windsun

Because 99% of the time that is the only reason the htaccess file issue
comes up here?
 
D

Dan G

I have htaccess files in about a dozen different subdirectories. They can
even be different if you have different objectives with different files.
I also suggest placing a "index.htm" page in each subdirectory. I use one
that includes a re-direct to the home page.
 
V

Viken Karaguesian

I have htaccess files in about a dozen different subdirectories. They can
even be different if you have different objectives with different files.
I also suggest placing a "index.htm" page in each subdirectory. I use one
that includes a re-direct to the home page.

OK. So I can include another htaccess file in another directory? So if I
wanted a redirect, I could place another htaccess file with the redirect in
it?

How do you use the index.htm file to redirect? I understand that placing an
index.htm file prevents the contents of a folder from being displayed, but
Im not sure how to use it to redirect.

Thanks.
 
S

Steve Easton

An extremely simple way is with a META Refresh tag in the head section of
the index.html page in the folder.
 

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