|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 : HereForum Rules & Posting Guidelines Canonicalisation Solutions |
|
#3
|
|||
|
|||
|
Quote:
Nuts this didnt fix it...any other ideas? Thanks again! bink |
|
#4
|
||||
|
||||
|
Quote:
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. |
![]() |
| Viewing: SEO Chat Forums > Other > HTML Coding > 301 Redirect causing extra / in URL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|