Jump to content

fURL rewrite help needed to redirect after 3x to 4.4 upgrade

Featured Replies

Posted

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.

Hello,

RewriteRule ^forums/(blogs|gallery|files)/(.*)$ /$1/$2 [L,R=301]

 

  • Author

@newbie LACAMAZING! Thanks!! You made my whole morning! It works!

  • Author

@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.

RewriteRule ^forums/(.*)$ /forum/$1 [L,R=301]
RewriteRule ^gallery/(.*)$ /picks/$1 [L,R=301]

 

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.