WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] What is this code in htaccess doing? (4 posts)

  1. Will Taft
    Member
    Posted 7 years ago #

    In the link to below there is the code from the htaccess file in my wordpress directory. Could someone tell me exactly what it is? I did not write the file, it must be created automatically or when the domain was set up for me.

    Thanks!

    http://wordpress.pastebin.ca/462125

  2. Chris_K
    Member
    Posted 7 years ago #

    It's exactly what WP created on your behalf when you visited Options -> Permalinks and changed them from the "Default" option.

  3. Will Taft
    Member
    Posted 7 years ago #

    Thanks! I am trying to learn more about the whole Google cannonicalization thing, 301 redirects etc. but it is a bit confusing.

  4. Will Taft
    Member
    Posted 7 years ago #

    Now a follow up. Someone named Otto, (maybe the Otto42 from here?) posted the quote below on another site. I have the .htaccess file referenced above in my wordpress directory, which is right below the root directory of my domain. Ie: mysite.com/wordpress. Do I make the revision to that file or do I need another .htaccess file in the root directory?

    "While this plugin and other like it will indeed work, I really recommend using the .htaccess method instead, if you can get it to work.

    It’s actually very simple to do. Go to no-www org and scroll down the page until you find the post titled “Make your site Class B”. Copy that htaccess code into the .htaccess file at the root of your webpage. Change the “domain” to your own, obviously.

    Done and done."

Topic Closed

This topic has been closed to new replies.

About this Topic