• I have converted a Joomla site over to WordPress and had installed it in /wp folder. Now I’m ready to go live with the site so have moved the existing site to a subfolder and wordpress site from /wp folder to root. The problem is that Google had found /wp site and has been directing traffic to it. Is there a way to use .htaccess to redirect those hits to /wp back to the root.

    The site is: https://thailand-dealer.com/
    Old WordPress location: https://thailand-dealer.com/wp
    New Joomla location: https://thailand-dealer.com/joomla

    What script would I type in .htaccess to direct traffic to the root.

Viewing 1 replies (of 1 total)
  • Thread Starter nancedelia

    (@nancedelia)

    Sorry am not a coder so need urgent help here. Found this code on the site, how would I modify this:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^mydomain.com/subdirectory$ [OR]
    RewriteCond %{HTTP_HOST} ^www.mydomain.com/subdirectory$
    RewriteRule (.*)$ https://www.mydomain.com/$1 [R=301,L]

Viewing 1 replies (of 1 total)
  • The topic ‘Moving the site from subfolder .htaccess rewrite’ is closed to new replies.