In an effort to remove requests for requests for pages on my old site (non-Drupal) that no longer exist, I tried to set up aliases of aliases and found that didn't work. Also, I couldn't make aliases of the old pages such as:
faq/index.php -> support
In the end, I ended up recreating the common pages that appear in the log with 404 errors which redirect to the alias. For example for faq/index.php, I simply have this code in the file:
header("Location: http://www.mysite.com/support");
exit;
Seems to work ok, but I'm wondering if there is a better way to do this.
Cheers,
Richard
Comments
Something like that...
The highlighted code got hosed - but I think you know what I mean after the "Location: " part.
I would use mod_rewrite rules to generate permanent redirects
I would use mod_rewrite rules to generate permanent redirects (ie. 301 errors).
I had a similar problem when migrating my site to Drupal (I also changed domain from .com to .org). I blogged about my experience here:
http://www.phpmix.org/story/moving_content_and_search_engines
In your example, I believe you could do something like this:
Doubt is the beginning, not the end of wisdom.
Excellent! I can maintain
Excellent! I can maintain them all in a single file then.
Cheers!
subscribing as I have been looking for a solution to the same
subscribing as I have been looking for a solution to the same