WordPress.org

Ready to get started?Download WordPress

Forums

Make subdirektory root - can't make it work (1 post)

  1. hrrubin
    Member
    Posted 4 months ago #

    Hey! I followed the instructions on Giving WordPress Its Own Directory, but it doesn't work.

    My website is: ceciliesgalleri.dk

    In the Generel settings tab:
    Wordpress url: http://ceciliesgalleri.dk/wp
    Site url: http://ceciliesgalleri.dk

    I made a copy of .htaccess and index.php to root.

    In root index.php, I changed:
    require( dirname( __FILE__ ) . '/wp-blog-header.php' );
    to:
    require( dirnam/( __FILE__ ) . '/wp/wp-blog-header.php' );

    In the wordpress directory, the .htaccess rewrote itself from:

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

    to:

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

    So what am I missing?

Reply

You must log in to post.

About this Topic