creating .htaccess files

A

Abraham

I wanted to create a custom 404 file. This hosting company
wants me to write the script. I am not that talented to do
it. They sent me information that essentially says this:

Use notepad to create a .htaccess file and upload it to the
root or home directory. And add lines which specify the
substitution. An example: ErrorDocument 404
http://wwww.mydomain.com/404.htm or I suppose 404.html.

Then upload it.

I did this using notepad and changed the extension from
..txt to .htaccess and uploaded it. But it doesn't work. I
don't really know what I am doing and probably didn't
decipher the true how-to-do-it meaning from the information
they supplied me. Any help on what I actually need to do to
make the .htaccess file using notepad would be appreciated
a lot.
Abraham
 
S

Stefan B Rusynko

Don't do it - you got bad advice
- .htaccess only works on Unix hosted sites (not on Windows server sites)
- if you have an existing .htaccess file you will over write it and make your site nonfunctional, especially if the Unix based site
has the FP SE
(you need to edit the existing .htaccess on your server if the host allows it using FTP access)
- it is not an extension (as in xxx.htaccess), it is a file name (as in .htaccess)
- FP will not allow you to create a .htaccess file w/i FP

--




| I wanted to create a custom 404 file. This hosting company
| wants me to write the script. I am not that talented to do
| it. They sent me information that essentially says this:
|
| Use notepad to create a .htaccess file and upload it to the
| root or home directory. And add lines which specify the
| substitution. An example: ErrorDocument 404
| http://wwww.mydomain.com/404.htm or I suppose 404.html.
|
| Then upload it.
|
| I did this using notepad and changed the extension from
| .txt to .htaccess and uploaded it. But it doesn't work. I
| don't really know what I am doing and probably didn't
| decipher the true how-to-do-it meaning from the information
| they supplied me. Any help on what I actually need to do to
| make the .htaccess file using notepad would be appreciated
| a lot.
| Abraham
 
A

Abraham

Thanks. Appreciate your help. Will not do it.
Abraham
-----Original Message-----
Don't do it - you got bad advice
- .htaccess only works on Unix hosted sites (not on Windows server sites)
- if you have an existing .htaccess file you will over
write it and make your site nonfunctional, especially if
the Unix based site
has the FP SE
(you need to edit the existing .htaccess on your server if
the host allows it using FTP access)
- it is not an extension (as in xxx.htaccess), it is a file name (as in .htaccess)
- FP will not allow you to create a .htaccess file w/i FP

--




"Abraham" <[email protected]> wrote in
message news:[email protected]...
 
D

David Baxter

what does the FP-SE put in the .htaccess file on a Unix server?


Stefan B Rusynko said:
Don't do it - you got bad advice
- .htaccess only works on Unix hosted sites (not on Windows server sites)
- if you have an existing .htaccess file you will over write it and
make your site nonfunctional, especially if the Unix based site
 
S

Steve Easton

essentially the same thing that you will see in the #htaccess.ctl file in the _vti_pvt folder in
your local web.

The image protection .htaccess file mentioned here is a different one that lives in a folder that
contains images and is used to prevent hot linking.

Also, on an apache server an .htaccess file ( different than the one used to stop hot links ) is
used in a folder you want to password protect and is different than the .htaccess file used for
authentication when publishing etc.

On an Apache the .htaccess file is a default that over rides any other file in a folder including a
default .htm file and will open a

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

David Baxter

I'm on an apache server - I don't see a #htaccess.ctl file anywhere...
either on the local disk copy or on the server
 
A

Abraham

They (1and1.com) told me the file is hidden by the server
so you have to test it to see the results you want. I am
not sure they really know how to do it in spite of them
saying they are there only for "technical support" because
three different people sent me to the same info page
somewhere else. Sorry for the double post. I hit reply
instead of reply to.
Abraham
-----Original Message-----
I'm on an apache server - I don't see a #htaccess.ctl file anywhere...
either on the local disk copy or on the server


Steve Easton said:
essentially the same thing that you will see in the
#htaccess.ctl file
in the _vti_pvt folder in
your local web.

The image protection .htaccess file mentioned here is a
different one
that lives in a folder that
contains images and is used to prevent hot linking.

Also, on an apache server an .htaccess file ( different
than the one
used to stop hot links ) is
used in a folder you want to password protect and is
different than
the .htaccess file used for
authentication when publishing etc.

On an Apache the .htaccess file is a default that over
rides any other
file in a folder including a
default .htm file and will open a

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer
over write it
and server if the
host a file name
(as

.
 
S

Steve Easton

Did you open the _vti_pvt folder in your local web using windows explorer and notepad??

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

David Baxter

yes...

Steve Easton said:
Did you open the _vti_pvt folder in your local web using windows explorer and notepad??

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

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