Are you using Apache as the web server? If so, you could do a couple of different things in a .htaccess file. Can you post the new and old locations? Or equivalents are enough.
Are you using Apache as the web server? If so, you could do a couple of different things in a .htaccess file. Can you post the new and old locations? Or equivalents are enough.
Yep, Apache is used here are two equivalent pages:
Does the redirect for each page need to go to the corresponding page, or just the new site? I'm hoping the latter /wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />
You can try that, though it depends on what other files you have (and where) on your site. It will affect any images or other files not located under the ECM directory.
Where do I add that?
Create a file called .htaccess and upload it to your public_html directory. If there's already one there, you ought to open it, and put the new code underneath and upload it again.
Ok, I added it and it worked, but, I have a couple of pages that I still need to have access to outside of the site. Is there a way to tweak the code to allow those to still be pulled up?
An alternative way is to use a permanent redirect in your .htaccess file, e.g.
You'd have to do it for each page (it doesn't matter whether the old page still exists or not).
Or, if you have removed the old pages, you can use a script like http://xav.com/scripts/guardian/ to redirect based on the 404 Error system (without displaying any error messages, but simply redirecting the visitor to the appropriate file).
Yes - they would need to be added as exceptions (extra RewriteCond rules) - one for each page/directory. Can you list them out?
I got it worked out, I just went in and added each redirect one at a time. Thanks for the help.
Is there a way to setup a site wide redirect so that if you go to any of our sites old pages, you will automatically be sent to our new site?
C-YA,
Mike
EXTREME Christian Ministries Forums