Log in

View Full Version : .htaccess for shortening URL


vivoperdio
08-23-2010, 08:03 AM
If I have forum on http://www.forum.com/showthread.php?t=12345

And I have another short domain http://fr.com

If people visit http://fw.com/12345 how to make they're automatically forwarded to http://www.forum.com/showthread.php?t=12345 ?

If you have any idea about this, please share with me here...

My current plan is making URL redirection/rewriting using .htaccess

toonysnn
08-25-2010, 12:37 AM
This is just a shot in the dark, but seems like it -should- work.
RewriteEngine on
RewriteRule (.*) http://www.forum.com/showthread.php?t={1} [LR=301]
Now, I'm not an SEO expert, and I have no idea how most of it works, but that should be fine for a single redirect rule.