WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-23-2007, 11:13 PM
WebProWorld Member
 

Join Date: Nov 2006
Posts: 72
dak888 RepRank 0
Default .htaccess hell

Looks like the best place for this post.

We have a url, www.ambrosiawindows.com.

After a buy out, the url was redirected to www.continentalwindowfashions (the new company) via the good ol' .htaccess file. I've done many redirects and even have a few other url's redirecting to this new domain.

Here is the problem, if you type in www.ambrosiawindows.com, if resolves perfectly to www.continentalwindowfashions.com. However, type in just ambrosiawindows.com (without the www) and guess what, it doesn't redirect. I've tried just about every form of redirecting this url that I can but I've run out of ideas. Here is the current code from the .htaccess:

Options Indexes FollowSymLinks Includes
AddType application/x-httpd-CGI .CGI
AddType text/x-server-parsed-html .shtml .htm .html

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ambrosiawindows.com
RewriteRule (.*) http://www.ambrosiawindows.com/$1 [R=301,L]

redirect 301 / http://www.continentalwindowfashions.com/

Any help would be appreciated. Right now our site is sitting out there in duplicate content land and we would like to get this url redirected as soon as possible!!!

Thanks,

DaK
Reply With Quote
  #2 (permalink)  
Old 03-24-2007, 04:11 PM
WebProWorld Member
 

Join Date: Nov 2006
Posts: 72
dak888 RepRank 0
Default

To kind of add to the mystery, it does in fact redirect to the correct website (www.continentalwindowfashions.com) however, the url still says ambrosiawindows.com.

But the site is getting mirrored. I can see this in google webmaster central as we have several incoming links coming from ambrosiawindows.com. And all of the pages that webmaster central shows as links coming from ambrosiawindows.com are actually pages on www.continentalwindowfashions.com.

This is getting really confusing...

DaK
Reply With Quote
  #3 (permalink)  
Old 03-24-2007, 04:22 PM
WebProWorld Member
 

Join Date: Dec 2006
Location: Indianapolis
Posts: 41
modrewrite RepRank 0
Default Re: .htaccess hell

Quote:
Originally Posted by dak888
However, type in just ambrosiawindows.com (without the www) and guess what, it doesn't redirect.
try the Require the www


Code:
Options Indexes +FollowSymLinks Includes
AddType application/x-httpd-CGI .CGI
AddType text/x-server-parsed-html .shtml .htm .html

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.ambrosiawindows\.com$ [NC]
RewriteRule .? http://www.ambrosiawindows.com%{REQUEST_URI} [R=301,L]
__________________
de // AskApache.com blog
Reply With Quote
  #4 (permalink)  
Old 03-24-2007, 10:53 PM
WebProWorld Member
 

Join Date: Nov 2006
Posts: 72
dak888 RepRank 0
Default

Thanks for the reply modrewrite but to no avail. That does not seem to work.

Thanks,

DaK
Reply With Quote
  #5 (permalink)  
Old 03-26-2007, 04:13 PM
WebProWorld Member
 

Join Date: Nov 2006
Posts: 72
dak888 RepRank 0
Default

This has been resolved.

Thanks everyone for looking.

DaK
Reply With Quote
  #6 (permalink)  
Old 03-26-2007, 04:30 PM
WebProWorld Member
 

Join Date: Dec 2006
Location: Indianapolis
Posts: 41
modrewrite RepRank 0
Default

Quote:
Originally Posted by dak888
This has been resolved.

Thanks everyone for looking.

DaK
What fixed it for ya?
__________________
de // AskApache.com blog
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0