WordPress.org

Ready to get started?Download WordPress

Forums

Access subdirectory WP site with www (2 posts)

  1. djblue32nyc
    Member
    Posted 1 year ago #

    Hi,

    I have a subdirectory in my httpdoc folder that holds all the WordPress folders for a site. What changes do I need to make to my .htaccess file in order to access that site with www?

    Here's what I have in my .htaccess file so far:

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

    As an extra note... in my root .htaccess I have this included:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^elmuseo\.org$ [NC]
    RewriteRule ^(.*)$ http://www.elmuseo.org/$1 [L,R=301]

  2. djblue32nyc
    Member
    Posted 1 year ago #

    I've seen this done for the .htaccess in the root folder, but I'm not sure how to do it for a subdirectory.

Topic Closed

This topic has been closed to new replies.

About this Topic