PDA

View Full Version : Redirect URLs in vBulletin 4.2.x?


Mattwhf
05-09-2016, 12:55 PM
Hi all,

I have a small issue when redirect old urls (Standard URLs) to new urls (Mod Rewrite Friendly URLs)

for example:
my old url is
http://forumweb.hosting/forumdisplay.php?f=95

I want to redirect to new url

http://forumweb.hosting/95-web-hosting

and I used this code in .htaccess file

Redirect 301 /forumdisplay.php?f=95 http://forumweb.hosting/95-web-hosting

but it didn't work

Any one knows how to redirect this? please suggest


Thanks
Matt

kerrghann
05-27-2016, 11:42 PM
Are you moving the entire domain? If so try this:


Redirect 301 / http://www.yournewdomianhere.com/


I'd say put it at the top of your .htaccess file on your root directory (/home/username/public_html/RIGHTHERE)

If you're just trying to do url rewrites I think you should be using the htaccess rewrite and rewritecond commands.

https://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/

Try this


RewriteEngine On # Turn on the rewriting engine
RewriteRule ^95-web-hosting/?$ forumdisplay.php?f=95 [NC,L]