/    Sign up×
Community /Pin to ProfileBookmark

how to create/name .htaccess file in Win

Hi all,

Can we actually create or name .htaccess file in Windows Systems?
I know that we put empty character before dot(.). But is it valid?

Thanks.

to post a comment
Full-stack Developer

4 Comments(s)

Copy linkTweet thisAlerts:
@TaschenOct 31.2006 — I'm 99.9% certain that .htaccess files are only valid for apache server. If you have apache installed on a windows OS you would do the same as if it were on any other operating system. Simple name your configuration file ".htaccess" (no spaces before the dot) and place in the appropriate directory.
Copy linkTweet thisAlerts:
@TheBearMayOct 31.2006 — If you're using notepad or a text editor initially you may have to save it under another name, and then go back and rename it.
Copy linkTweet thisAlerts:
@TaschenOct 31.2006 — ... if you are having problems running a file starting with a "." you may need to do the following (for Windows which doesn't like files starting with a "."):

Open your command shell (run => cmd) under the start menu.

Issue the command "REN htaccess .htaccess"

This will rename .htaccess to htaccess

This should allow you to run .htaccess on apache on windows.
Copy linkTweet thisAlerts:
@felgallOct 31.2006 — Easiest weay is to surround the name in quotes.

".htaccess"

Filenames in quotes do not get altered by Windoze when it saves the file.
×

Success!

Help @iota spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...