: 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
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 ?
More posts by @Sue5673885
1 Comments
Sorted by latest first Latest Oldest Best
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").
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.