Doing Apache stuff with Windows
Moderator: General Moderators
Doing Apache stuff with Windows
Hi guys,
My hosting account is based on Linux and allows .htaccess files for password protection/custom error pages etc. I have developed custom 404 pages and am looking at preventing hot linking to my images as well as future .htaccess functions.
I am using PWS with Win98. My first problem is that Windows will not allow me to name my files .htaccess or anything starting with a period. It says "You must type a filename".
1) Is there any way of sorting the filename name thing out
2) What would I need to enable me to serve these pages.
I cannot keep transfering my files and renaming them on the server and then testing, as I have limited connection time. PWS works well with ASP/Access and PHP/MySQL so I would like to stay with Windows only.
Cheers.
My hosting account is based on Linux and allows .htaccess files for password protection/custom error pages etc. I have developed custom 404 pages and am looking at preventing hot linking to my images as well as future .htaccess functions.
I am using PWS with Win98. My first problem is that Windows will not allow me to name my files .htaccess or anything starting with a period. It says "You must type a filename".
1) Is there any way of sorting the filename name thing out
2) What would I need to enable me to serve these pages.
I cannot keep transfering my files and renaming them on the server and then testing, as I have limited connection time. PWS works well with ASP/Access and PHP/MySQL so I would like to stay with Windows only.
Cheers.
it's only a restriction in the explorer (why ever).
just name it i.e. htaccess and open a console where you move the file to .htaccess .
Or get an editor that does not care about file extensions. I like ultraedit - but that's just a matter of opinion.
But I doubt PWS is supporting .htaccess-protection.
On the other hand there is http://www.apache-asp.org/. So you may want to turn over to apache
just name it i.e. htaccess and open a console where you move the file to .htaccess .
Or get an editor that does not care about file extensions. I like ultraedit - but that's just a matter of opinion.
But I doubt PWS is supporting .htaccess-protection.
On the other hand there is http://www.apache-asp.org/. So you may want to turn over to apache
For future reference:
I created my htaccess file in Notepad and saved the file as htaccess.txt . I then opened a DOS window and moved to the directory containing the htaccess file. Then I renamed the file through DOS.
ren is rename, space, then original filename, space, new file name.
I though Windows was based on DOS, so if DOS will do it why won't Windows -- over to you Bill!
PS. I'm downloading Apache now.
I created my htaccess file in Notepad and saved the file as htaccess.txt . I then opened a DOS window and moved to the directory containing the htaccess file. Then I renamed the file through DOS.
Code: Select all
F:\> ren htaccess.txt .htaccessI though Windows was based on DOS, so if DOS will do it why won't Windows -- over to you Bill!
PS. I'm downloading Apache now.