HTML Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherHTML Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old April 2nd, 2007, 12:43 AM
bink bink is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 36 bink User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 11 m 56 sec
Reputation Power: 7
301 Redirect causing extra / in URL

Hello all,

I am using a 301 redirect to redirect all my traffic to www.mydomain.com

The problem I am having is that when someone goes to mydomain.com it redirects them to http:/www.mydomain.com// (note extra / in there).

The code in my apache conf file is:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mydomain\.net [nc]
RewriteRule ^(.*)$ http://www.mydomain.net/$1 [R=permanent,nc]

thanks for the help!
bink

Reply With Quote
  #2  
Old April 2nd, 2007, 01:08 AM
ClickyB's Avatar
ClickyB ClickyB is offline
Cool bra. Go with Christ!
Click here for more information. Click here for more information
 
Join Date: Mar 2004
Location: Gloucester (South West UK).
Posts: 5,031 ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 3 Months 4 Weeks 13 h 40 m 54 sec
Reputation Power: 213
Try replacing those last two lines with:

RewriteCond %{HTTP_HOST} ^mydomain.net
RewriteRule (.*) http://www.mydomain.net/$1 [R=301,L]
__________________
ClickyB
"The quality of the visitor is more important than the volume".. Egol 22nd Feb 2008
New to SEO / SeoChat? Start : Here
Forum Rules & Posting Guidelines
Canonicalisation Solutions

Reply With Quote
  #3  
Old April 2nd, 2007, 01:31 AM
bink bink is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 36 bink User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 11 m 56 sec
Reputation Power: 7
Quote:
Originally Posted by ClickyB
Try replacing those last two lines with:

RewriteCond %{HTTP_HOST} ^mydomain.net
RewriteRule (.*) http://www.mydomain.net/$1 [R=301,L]


Nuts this didnt fix it...any other ideas?

Thanks again!
bink

Reply With Quote
  #4  
Old April 2nd, 2007, 04:30 AM
ClickyB's Avatar
ClickyB ClickyB is offline
Cool bra. Go with Christ!
Click here for more information. Click here for more information
 
Join Date: Mar 2004
Location: Gloucester (South West UK).
Posts: 5,031 ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level)ClickyB User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 3 Months 4 Weeks 13 h 40 m 54 sec
Reputation Power: 213
Quote:
Originally Posted by bink
Nuts this didnt fix it...any other ideas?

Thanks again!
bink
Yep... if this didn't fix it then the problem is somewhere else!

Do you have anything else in your .htaccess or is this the whole thing?

If you can't figure it out you should probably contact your host... they should be able to figure it out for you.

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherHTML Coding > 301 Redirect causing extra / in URL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 9 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek