Forums

moving .htaccess file (14 posts)

  1. webtodd
    Member
    Posted 6 years ago #

    i just attempted to move my .htaccess file from the wordpress directory into the root of my site... but i couldn't figure out how to do this. i used absoluteftp software and changed the settings to "view dot files"... but moving the file wasn't as easy as drag and drop. anyone know an easy way to move this file? i was following these instructions to give wordpress its own directory:
    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

  2. Cypher
    Member
    Posted 6 years ago #

    1. Download the file from your site to a local directory.
    2. Go to the root for your site.
    3. Upload the file from your local directory to the site.

    Regards

  3. webtodd
    Member
    Posted 6 years ago #

    thanks, that worked.

  4. webtodd
    Member
    Posted 6 years ago #

    is my .htaccess file formatted correctly?

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

  5. webtodd
    Member
    Posted 6 years ago #

    i'm having this problem now...when i click a link such as:

    http://www.domain.com/wordpress/about

    for some reason this URL is not found:

    http://www.domain.com/wordpress/index.php/about/

    why would it be inserting that "index.php" in the URL? that seems to be causing the 404 page to come up.

  6. Chris_K
    Member
    Posted 6 years ago #

    How do you have your permalinks set?

    And yes, that .htaccess looks pretty typical for a WP 2.x install. WP handles most of the redirection internally these days.

  7. webtodd
    Member
    Posted 6 years ago #

    below are my current settings:
    ---

    wordpress address:

    /wordpress

    blog address:

    http://domain.com/wordpress

  8. Your WordPress address needs to be a full URL, just like your blog address.

  9. webtodd
    Member
    Posted 6 years ago #

    this problem is still driving me nuts!
    --
    when i click a link such as:

    http://www.domain.com/wordpress/about

    for some reason this URL is not found:

    http://www.domain.com/wordpress/index.php/about/

  10. Chris_K
    Member
    Posted 6 years ago #

    Your WordPress address needs to be a full URL, just like your blog address.

  11. webtodd
    Member
    Posted 6 years ago #

    i changed it to the full URL and i'm still having the same issue.

  12. webtodd
    Member
    Posted 6 years ago #

    when i click on the "permalinks" option in the admin, the admin is actually showing these same broken URLs with the "index.php"

    http://domain.com/index.php/2006/03/21/sample-post/

    it's like the permalinks are using my blog address instead of my wordpress address???

    (my blog index.php is installed on the root domain)

  13. Chris_K
    Member
    Posted 6 years ago #

    What OS and web server are you running?

    Does your web server support mod_rewrite?

  14. There should be no need for mod_rewrite if the index.php prefix is used.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.