Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Maxxius Posted October 23, 2019 Posted October 23, 2019 Hello, after I have upgraded my forum I see that once I go live with new version the URLs will not be redirected for gallery, blogs and files because of new structure. I wonder do any of you know any .htaccess rewrite tricks to make such redirects possible? http://www.website.com/forums/blogs/* -> http://www.website.com/blogs/*http://www.website.com/forums/gallery/* -> http://www.website.com/gallery/*http://www.website.com/forums/files/* ->http://www.website.com/files/* I actually need the part forums dropped from the URL only when the address is going for forums+blogs/gallery/files. Don't want to loose that google traffic.
newbie LAC Posted October 24, 2019 Posted October 24, 2019 Hello, RewriteRule ^forums/(blogs|gallery|files)/(.*)$ /$1/$2 [L,R=301]
Maxxius Posted October 24, 2019 Author Posted October 24, 2019 @newbie LACAMAZING! Thanks!! You made my whole morning! It works!
Maxxius Posted October 27, 2019 Author Posted October 27, 2019 @newbie LAC I got one final thing to try and see if the IPS forum supports such a thing - that is rewriting top-level app fURLs slugs. Can you help me by giving an example what could be put in htaccess so such redirection happens: website.com/forums/* -> website.com/forum/* website.com/gallery/* -> website.com/pics/* etc.? you get the idea. I just need the principle, I'd make out other slugs then. Will try to redirect fURLs the proper way without editing core files.
newbie LAC Posted October 28, 2019 Posted October 28, 2019 RewriteRule ^forums/(.*)$ /forum/$1 [L,R=301] RewriteRule ^gallery/(.*)$ /picks/$1 [L,R=301]
Recommended Posts
Archived
This topic is now archived and is closed to further replies.