Website Redirection

Soldato
Joined
27 Dec 2005
Posts
17,315
Location
Bristol
It's quite simple - I want to redirect users from "www.rghjones.co.uk/hire" to "www.rghjones.co.uk/?a=hire", just so there's a simpler URL to type/read/follow.

I know you can mod-rewrite but I don't know much about that and also heard it was 'disapproved' of by Google. So I created a folder called hire, stuck in a fairly blank index.html with the code:

Code:
<meta http-equiv="Refresh" content="0; url=http://www.rghjones.co.uk/?a=hire">

To put it bluntly, it doesn't work. Somehow it gets the content from the index.php on the next folder level down and tries to display my site as normal (like this). Firstly can someone explain how/why it's doing that, and secondly how can I fix it/redirect with another method?
 
mod rewrite is the right way to go about it, you will find that nearly all large sites with friendly urls will be using it in one form of another (isapi rewrite). google certainly has no problem with it
 
Wow, I really need to update my knowledge, sorry for supplying you with a duff method rghjones :(
 
I take the easy way out and use a PHP file to redirect people. maybe not as 'professional', but the results are exactly the same (and a lot less hassle than the mod rewrite/htaccess methods).
 
Contrary to Reebro's post (and possibly link, I haven't read it) meta tag redirect is more reliable than a straight header redirect with older browsers (really old.. like Netscape 3 old.)
 
depending on site content (target market) it really isnt worth considering "really old" browsers.

mod rewrite provides the cleanest user interaction, not to mention that what we are talking about here isnt really a standard redirect as in from an old url to a new url, it is being used to provide a human and search engine friendly url.
 
Back
Top Bottom