Forum Moderators: coopster
For example, I could set this up in a php redirect file as something like:
/go.php?id=name
or in hataccess as a 302 redirect:
/go/name
Are there advantages/disadvantages to either? I'm really just not that skilled in this, any advice is much appreciated!
One of the most important things is to set a redirect status in either. Running a 302 is really not recommended in either the .htaccess file or PHP... You should set the proper status code to give SEs (and visitors) the reason for the redirect so the next visit is handled correctly.
You can find status codes here:
Redirect Status Codes [w3.org]
I personally don't recommend it, but if you would like it to be temporary, you could use a 307 Temporary or 303 See Other, but this is not the intended use of those status codes. A 302 Found is basically a 'catch-all' for an 'undefined' redirect and SEs have had known issues with handling them.
All the status codes and their intended uses are listed on the link I provided, and personally, I think 301 is the best option for what you are doing, but you may find one you think fits better knowing your exact situation.
Thanks for your feedback. If anyone else knows whats up please chime in. :)