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. Link to comment https://forums.phpfreaks.com/topic/219647-vanity-url-redirect/ 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?.... Link to comment https://forums.phpfreaks.com/topic/219647-vanity-url-redirect/#findComment-1138813 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(); ?> Link to comment https://forums.phpfreaks.com/topic/219647-vanity-url-redirect/#findComment-1138817 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.