Need help! .htaccess best method, and url vars
I need to creater shorter URL's for some pages due to the "real" URL's being too long when including them in mail shots.
Would be too long for some peoples email clients (maybe bad example above, but trust me, some are too long, esp. when theres is more URL vars), and it wraps onto two lines, which causes issues with some peoples email clients and disables the URL. With being such a large site and having alot of people receiving emails (50k+) there is a handful of people who keep asking about this issue.
So my plan is to use a smaller URL and redirect it using .htaccess to the real URL. So, for example we would direct
http://www.mysite.com/efpa.php?id=12345 to http://www.mysite.com/editfreeprivatead.php?id=12345
So the email would include the http://www.mysite.com/efpa.php?id=12345 link, and when they follow this link it would redirect (via .htaccess) to the http://www.mysite.com/editfreeprivatead.php?id=12345 page.
My question is which is the best type of redirect to use? Should it be a permanent 301 redirect? Or should it be a 302 default redirect? Note that the efpa.php page does not actully exist, or has it ever existed, we are just using it to create a smaller URL to redirect from.
Any input would be great.
If anybody has any information on adding vars to redirects too, that would be great! i.e. how I go about adding the id=1234 from the efpa.php to the editfreeprivateadvert.php in the .htaccess?
|All times are GMT +1. The time now is 08:23 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.