Mobile app version of vmapp.org
Login or Join
Sue5673885

: Moving site - make all links 301 on same tld Customer had website in Joomla like this: www.example.com/home/ www.domainA.com/home/aboutus www.domainA.com/home/blog Not sure why it was made this way

@Sue5673885

Posted in: #GoogleSearchConsole #Htaccess #TopLevelDomains

Customer had website in Joomla like this:

example.com/home/ www.domainA.com/home/aboutus domainA.com/home/blog

Not sure why it was made this way with /home as default.

Anyway I moved the site and domain to new hosting and now I have lost /home. Meaning that all the links are gone. Now I have:

domainA.com www.domainA.com/aboutus domainA.com/blog

I would like to to redirect everything that started with /home to exact same links but without /home with 301 or whatever solution is best.

I guess it should be possible with webmaster tools and somehow in .htaccess so that users or links present on web also get redirected immediately ?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sue5673885

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ogunnowo487

In your root .htaccess, using mod_alias:

Redirect 301 /home /


However, if you are already using mod_rewrite (very likely that you are if this is still a Joomla site) then you should use mod_rewrite:

RewriteEngine On
RewriteRule ^home/(.*) / [R=301,L]


Nothing else to do in Google Search Console (formerly known as "Google Webmaster Tools").

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme