i want htaccess file how get

Recommended Answers

All 4 Replies

You search Google for info about the .htaccess file and try some tutorials to create one. Then, if you can't figure out how to create one or if you run into problems, you post your questions here, and we can help you.

Edit: A useful link given by fireburner29 in this post:
http://htaccess-guide.com/

Are you on localhost..? shared hosting server..?

Care to explain more on your server details.. :)

on localhost try to edit file httpd.conf found in "C:\Windows"
search for line
#LoadModule rewrite_module modules/mod_rewrite.so
and remove # to activate rewrite module, restart your PC and try to learn basic rules for htaccess like

Options All -Indexes  # prevent user from viewing folder content
RewriteEngine on  # switch rewrite ON
RewriteRule ^(.*).html$ $1.php  #convert any php page to html page in url address

as @minitauros mentioned try to read a guide for making htaccess file

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.