Having some problems figuring out how to do this...

Basically I have the following right now:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^Age-Of-Empires-Online/([^/]*)$ /index.php?portal=AOEO&$1

I need to make the old URLs re-direct to the new URL format...but I still want the new URL to ACT like the old URL....is this possible? or is it simply an endless loop?

6 Years
Discussion Span
Last Post by sDJh

Hi MasterGBerry,

yes you can. I don't know want your plan is exactly. But I do it this way:

Redirect permanent myoldlocation mynewlocation

(or was it the other way round?) Have a look in the official manual: http://httpd.apache.org/docs/current/mod/mod_alias.html#redirectmatch

What you could also try to archive is your own redirection using PHP and the readfile-function. If a user access an old address, the server calls the 404-error-page and that sends the data to the client.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.