Support » Fixing WordPress » Issues with wordpress on subdirectory

  • Martino

    (@martinopelupessy)



    Hi,

    I made a wordpress website and installed in onto a subdirectory (/wordpress/)
    Now that the site is done I want it to show up in the root domainname.

    I got everything working sofar. Every page is showing like i should be except the actual homepage. I’m already trying for hours but can’t seem to figure it out.

    Hope someone can help me with this!

Viewing 1 replies (of 1 total)
  • Martino

    (@martinopelupessy)

    For some reason when I go to the homepage it still shows the subdirectory in the URL. But only does it for the homepage all other pages are fine.

    htaccess file in the root folder

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^(www.)?f4efootball.com$
    RewriteCond %{REQUEST_URI} !^/wordpress/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /wordpress/$1
    RewriteCond %{HTTP_HOST} ^(www.)?f4efootball.com$
    RewriteRule ^(/)?$ wordpress/index.php [L] 
    </IfModule>

    htaccess file in the root subdirectory folder

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.