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?

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.