Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Adsense / PPC / SEO Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 06-23-2011, 04:03 AM   #1
Active Warrior
 
Join Date: Oct 2010
Location: cochin
Posts: 34
Thanks: 1
Thanked 2 Times in 2 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Default 301 Redirect for Hyphenated domains - Help

Hi,

I have a domain seo-experts-india.in which is in wordpress blog. I tried all possible ways to redirect it from non www version to www version by editing .htaccess file . The .htaccess file will look like this :

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

I have added codes like this in .htaccess file

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^seo\-experts\-india\.in [NC]
RewriteRule ^(.*) httpwww[dot]seo-experts-india[dot]in/$1 [R=301,L]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

and
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^seo-experts-india.in [NC]
RewriteRule ^(.*)$ httpwww[dot]seo-experts-india[dot]in/$1 [R=301,L]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

note:[Dot] I m using because i cannot post links in this post
But all these case web browser not able to complete the request and resulting an error "This webpage has a redirect loop
The webpage at www[dot]seo-experts-india[dot]in has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer."

If any one knows this fix please provide the exact steps. its urgent

leapharris is offline   Reply With Quote
Old 06-23-2011, 06:12 AM   #2
SEO Company | SEO
 
Join Date: Jun 2011
Location: Level 1/2 Adelaide St, Cremorne East Richmond, VIC 3121, Australia
Posts: 93
Thanks: 8
Thanked 5 Times in 5 Posts
Contact Info
Send a message via Yahoo to seoservicesaustralia
Default Re: 301 Redirect for Hyphenated domains - Help

Quote:
Originally Posted by leapharris View Post
Hi,

I have a domain seo-experts-india.in which is in wordpress blog. I tried all possible ways to redirect it from non www version to www version by editing .htaccess file . The .htaccess file will look like this :

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

I have added codes like this in .htaccess file

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^seo-experts-india.in [NC]
RewriteRule ^(.*) httpwww[dot]seo-experts-india[dot]in/$1 [R=301,L]
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

and
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^seo-experts-india.in [NC]
RewriteRule ^(.*)$ httpwww[dot]seo-experts-india[dot]in/$1 [R=301,L]
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

note:[Dot] I m using because i cannot post links in this post
But all these case web browser not able to complete the request and resulting an error "This webpage has a redirect loop
The webpage at www[dot]seo-experts-india[dot]in has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer."

If any one knows this fix please provide the exact steps. its urgent

Thanks By Share. Nice Update

seoservicesaustralia is offline   Reply With Quote
Old 06-23-2011, 06:43 AM   #3
Warrior Member
 
Join Date: Jun 2011
Posts: 27
Thanks: 0
Thanked 2 Times in 2 Posts
Default Re: 301 Redirect for Hyphenated domains - Help

Hi plz chk your PM as i am not able to submit the URL yet.

daniel69 is offline   Reply With Quote
Old 06-23-2011, 06:44 AM   #4
Warrior Member
 
Join Date: Jun 2011
Posts: 27
Thanks: 0
Thanked 2 Times in 2 Posts
Default Re: 301 Redirect for Hyphenated domains - Help

Hi try this:

RewriteEngine On RewriteCond %{HTTP_HOST} !^www\(dot)seo\-experts\-india\(dot)in [NC] RewriteRule (.*) httpwww(dot)seo-experts-india.in/$1 [R=301,L]i have used the same code in my htaccess file.

daniel69 is offline   Reply With Quote
Old 06-23-2011, 07:04 AM   #5
Plundering the Web
War Room Member
 
paulgl's Avatar
 
Join Date: Feb 2007
Location: , , .
Posts: 4,849
Thanks: 804
Thanked 1,199 Times in 886 Posts
Default Re: 301 Redirect for Hyphenated domains - Help

Your code just does not look right.
There are typos, for one.
Too complicated for another.

If you have cpanel, best way is to do it through that.

Have no idea what server you have.

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

Much simpler looking, but may not work on your server, depending
on type and settings.

In the end, if a non-www and www take you to the same page,
leave it alone. It's really no big deal, even though some think the
sky is falling. It's a non-issue.

Paul

How to Make Money off Facebook: Login to your account. Deactivate your account. Get your butt to work.
paulgl is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Adsense / PPC / SEO Discussion Forum

Tags
301, domains, hyphenated, redirect

Thread Tools

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

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



All times are GMT -6. The time now is 07:00 AM.