• Hi,

    I successfully managed to rewrite the url’s to hide /wordpress/ from my url. But now the landing page called home.html does not work it goes straight to index.php in the /wordpress/ folder.
    I’m currently having allot of trouble creating a htaccess file that will do the following.

    I have a home.html in the /site/ folder which I want to be the landing page of my blog. My blog is in /wordpress/

    The site is running on an apache server.

    —–htaccess—–

    <IfModule mod_rewrite.c>

    RewriteBase /
    RewriteEngine On

    DirectoryIndex /site/home.html
    RewriteCond %{REQUEST_URI} “/”
    RewriteCond %{REQUEST_URI} “/home.html”
    RewriteRule ^(.*) $1 [L]
    RewriteCond %{REQUEST_FILENAME} !^.*wordpress
    RewriteRule ^(.*) /wordpress/$1 [L]
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    As of now, the source shows the code of the landing page but I don’t see anything on my monitor, its a blank screen.

    I can’t figure it out.. I think I’m so close but I need help. I thought that maybe the path to the images where wrong.. But i can’t see why. The home.html used to be in the root. Now it’s in /site/ but the links to the css files etc are absolute (http://www..etc ) so that cant be it can it? Is it possible that the htaccess blocks content and I need to allow this content?

    kind Regards,

    Tim

    p.s. I cannot show the website. My client does not allow it yet.

  • The topic ‘Creating single htaccess in root, with .html landing page & wp = in subfolder’ is closed to new replies.