johnmerlino Posted November 24, 2010 Share Posted November 24, 2010 Hey all, How would you do a vanity URL redirect? For example, you put this in flyer: site.com/yourpage but when user puts that in URL, it really goes to: site.com/products/1?category=1 Thanks for response. Quote Link to comment Share on other sites More sharing options...
johnmerlino Posted November 24, 2010 Author Share Posted November 24, 2010 Or is it just apache .htaccess: redirect 301 /product http://www.site.com?.... Quote Link to comment Share on other sites More sharing options...
dukesdemise Posted November 24, 2010 Share Posted November 24, 2010 This would probably work in a .htaccess file: RedirectPermanent / http://site.com/products/1?category=1 Or you could do in an index.php file: <?php header("Location: http://site.com/products/1?category=1"); exit(); ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.