6 Replies - 1054 Views - Last Post: 26 September 2008 - 05:11 PM

#1 dreamincodehamza  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: -12
  • View blog
  • Posts: 330
  • Joined: 12-September 08

.htaccess

Posted 19 September 2008 - 03:24 PM

informatin about .htaccess file
why we need this file ?
how it is helpful of us?
where it is located?
what is this file for?
i have seen many times this file is
located in projects.
reply me with full description
Is This A Good Question/Topic? 0
  • +

Replies To: .htaccess

#2 mocker  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 50
  • View blog
  • Posts: 466
  • Joined: 14-October 07

Re: .htaccess

Posted 19 September 2008 - 03:32 PM

informatin about .htaccess file
why we need this file ? you don't. unless you want to change apache settings for a directory
how it is helpful of us? you can change apache settings for a directory
where it is located? in the root of the directory its changing. Any files in or below its location receive its changes
what is this file for? read the last two answers
i have seen many times this file is
located in projects.
reply me with full description

alternatively, first google search for "apache htaccess"
http://httpd.apache....o/htaccess.html
Was This Post Helpful? 0
  • +
  • -

#3 Moonbat  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 36
  • View blog
  • Posts: 424
  • Joined: 30-June 08

Re: .htaccess

Posted 19 September 2008 - 08:14 PM

.htaccess files are useful for many things. But one aspect in particular is the ability to rewrite URLs. This is good for search engine optimization (SEO) so your website's rank can be higher on the search engine and get you more hits. A .htaccess file can turn something like this:
http://www.test.com/article.php?name=acoolarticle

into this
http://www.test.com/article/acoolarticle


You can read more on using this feature, known as mod_rewrite, at PsychoCoder's mod_rewrite PHP snippet
Was This Post Helpful? 0
  • +
  • -

#4 dreamincodehamza  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: -12
  • View blog
  • Posts: 330
  • Joined: 12-September 08

Re: .htaccess

Posted 25 September 2008 - 03:55 PM

i have read about the htaccess file but in have installed the appache web server
but not able to locate the htaccess file.
can anyone tell me the full path of this file.
----------------------------------------
Was This Post Helpful? 0
  • +
  • -

#5 Hary  Icon User is offline

  • D.I.C Regular

Reputation: 44
  • View blog
  • Posts: 427
  • Joined: 23-September 08

Re: .htaccess

Posted 26 September 2008 - 01:23 AM

You can put the .htaccess file in every single directory of files of your web server. I will be enabled on that directory and down the file tree.

Bare in mind the file might be hiddden, or does not exist already. You might need to create the file in your webroot (c:\htdocs or /var/www)
Was This Post Helpful? 0
  • +
  • -

#6 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5182
  • View blog
  • Posts: 26,880
  • Joined: 10-May 07

Re: .htaccess

Posted 26 September 2008 - 01:33 AM

View Postdreamincodehamza, on 25 Sep, 2008 - 06:55 PM, said:

i have read about the htaccess file but in have installed the appache web server

& that's exactly where this topic belongs, in Web Servers & Hosting, not in PHP :P

View Postdreamincodehamza, on 19 Sep, 2008 - 06:24 PM, said:

informatin about .htaccess file

Try here...
Was This Post Helpful? 0
  • +
  • -

#7 dreamincodehamza  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: -12
  • View blog
  • Posts: 330
  • Joined: 12-September 08

Re: .htaccess

Posted 26 September 2008 - 05:11 PM

okay let me read it first about htaccess

okay let me read it first about htaccess.
and tell me then if there is more then two
htaccess file in the webserver then which
one will be executed.
and
any fix or particular directory where
webserver look for this file.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1