WordPress.org

Ready to get started?Download WordPress

Forums

Can't find .htaccess (4 posts)

  1. robertblog
    Member
    Posted 2 years ago #

    When trying to configure my site to add another domain, it tells me to add the following to .htaccess:
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]

    I cannot find this file.

    HELP!!!!

  2. teneagles
    Member
    Posted 2 years ago #

    I had the same probem, and I found that in the wordpress install, there was a generic .htaccess file in the root of the install. I just copied it into the place one should have been, and added the code between the IF MODULE open and close lines. You have to REPLACE the stuff that is already between them. Hope it helps..

  3. WPtesting
    Member
    Posted 2 years ago #

    if you don't have an .htaccess file in your root directory, CREATE IT :)

  4. Make sure you have 'show hidden files' or the equivalent turned on in your FTP or file manager app first.

    Here is the "Apache Tutorial: .htaccess files"
    http://httpd.apache.org/docs/trunk/howto/htaccess.html

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags