introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.

.htaccess port



Posted by: docweathers
September 30, 2010 03:27AM
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
Options: ReplyQuote


Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.