Maxxius Posted October 23, 2019 Share 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. Link to comment Share on other sites More sharing options...
newbie LAC Posted October 24, 2019 Share Posted October 24, 2019 Hello, RewriteRule ^forums/(blogs|gallery|files)/(.*)$ /$1/$2 [L,R=301] Link to comment Share on other sites More sharing options...
Maxxius Posted October 24, 2019 Author Share Posted October 24, 2019 @newbie LACAMAZING! Thanks!! You made my whole morning! It works! Link to comment Share on other sites More sharing options...
Maxxius Posted October 27, 2019 Author Share 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. Link to comment Share on other sites More sharing options...
newbie LAC Posted October 28, 2019 Share Posted October 28, 2019 RewriteRule ^forums/(.*)$ /forum/$1 [L,R=301] RewriteRule ^gallery/(.*)$ /picks/$1 [L,R=301] Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.