The base url of my Joomla 1.5.20 site used to be [
www.adhdtreatment.org]. This was done so I could have my own apache and thus a little better performance. Now my hosting company has change my base url to just [
www.adhdtreatment.org]. Of course, the search engines have all of my pages indexed with the :10500. Of course all of the old URL's give a 404. I would like to send these indexed pages to their new URL. My theory is to use a modrewrite to send all [
www.adhdtreatment.org] url's to [
www.adhdtreatment.org]. Since some of the other elements of in the path have also changed, I was then going to use a list of simple 301 redirects like "redirect 301 /adhd/homework-messenger-help.html [
www.adhdtreatment.org]; to send each request to the correct url.
So my questions are:
1) Is this the best strategy/ will it work?
2) In my .htaccess file, I already have modrewrite on for some other reasons, but this attempt at the mod rewrite rule does not work.
RewriteCond %{SERVER_PORT} ^10500$
RewriteRule .* [
www.adhdtreatment.org] [R=PERMANENT]
What am I doing wrong and how do I correct it?
Thanks Larry