Photo
- - - - -

Where is .htaccess located by default?


  • Please log in to reply
4 replies to this topic

#1 ASOuser

ASOuser

    Small Orange

  • Members
  • PipPip
  • 32 posts

Posted 12 April 2009 - 02:35 PM

Hey,

I need to add some rules to my .htaccess file for wordpress.

I can't seem to find .htaccess though.

Should I just created one in a text editor? Or does it already exist somewhere?

And should it go in my main, lowest, html directory, or do I put in the folder that hosts my addon domain?

Thanks for any help you can offer.
  • 0

#2 Larry

Larry

    Speedy Orange

  • Members
  • PipPip
  • 44 posts

Posted 12 April 2009 - 04:32 PM

It usually doesn't exist and needs to be created.

I had my blog in ~/public_html/blog/ so I made mine in the blog sub directory so it only affected my blog directory.

  • 0

#3 djbaxter

djbaxter

    Rather Big Orange

  • Members
  • PipPipPipPip
  • 292 posts

Posted 12 April 2009 - 11:49 PM

Make sure that you create it and save it using a plain ASCII/ANSI text editor (i.e., not Unicode which I believe is the default for Notepad). You may have to save it as htaccess.txt and then rename it later to .htaccess after you FTP it to your site.
  • 0

#4 ASOuser

ASOuser

    Small Orange

  • Members
  • PipPip
  • 32 posts

Posted 13 April 2009 - 07:56 PM

QUOTE (Larry @ Apr 12 2009, 3:32 PM) <{POST_SNAPBACK}>
It usually doesn't exist and needs to be created.

I had my blog in ~/public_html/blog/ so I made mine in the blog sub directory so it only affected my blog directory.


Thanks. I just created one in my blog directory and it worked! Good to know.

QUOTE (djbaxter @ Apr 12 2009, 10:49 PM) <{POST_SNAPBACK}>
Make sure that you create it and save it using a plain ASCII/ANSI text editor (i.e., not Unicode which I believe is the default for Notepad). You may have to save it as htaccess.txt and then rename it later to .htaccess after you FTP it to your site.


Good tip.

However, it seems CPanels built in edit feature does the trick.
  • 0

#5 claire0917

claire0917

    Small Orange

  • Members
  • PipPip
  • 12 posts

Posted 12 July 2009 - 10:37 PM

It's invisible sometimes. You have to check Show Hidden

  • 0
Life, Love, Relationships
www.scribblejoint.com




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users