MaxxiusOctober 23, 2019 in Help & Support
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.
RewriteRule ^forums/(blogs|gallery|files)/(.*)$ /$1/$2 [L,R=301]
@newbie LACAMAZING! Thanks!! You made my whole morning! It works!
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.
RewriteRule ^forums/(.*)$ /forum/$1 [L,R=301]
RewriteRule ^gallery/(.*)$ /picks/$1 [L,R=301]
This topic is now archived and is closed to further replies.
Started Thursday at 02:03 PM
Started 3 hours ago
Started Yesterday at 02:08 PM