Webmaster Forum

Go Back   Webmaster Forum > Marketing Forums > SEO Forum

SEO Forum Search engine optimization discussions.


Reply
 
LinkBack Thread Tools Display Modes
Old 10-29-2007, 05:40 AM   #1 (permalink)
Member
 
Join Date: 07-24-07
Location: Mumbai
Posts: 48
iTrader: 0 / 0%
Latest Blog:
None

Red devil is liked by many
Send a message via MSN to Red devil
Page Redirect Code

Hi,
Initially we had a domain www.2bhk.com, now we have got it changed to www.makaan.com and are using the following re-direct code in the config file:

if(strstr($INVALID_HOSTS_STRING,strtolower("|$HTTP _HOST|")))
{
header("Status: 301 Moved Permanently");
header("Location: http://www.makaan.com".strtolower($REQUEST_URI));
exit;
}

is it correct/incorrect?

because its over 2 months since our site has gone live and cache:http://www.makaan.com/ still shows no result.

can somebody pls help....thanks
Murtaza
Red devil is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-29-2007, 09:21 AM   #2 (permalink)
v7n Mentor
 
Join Date: 07-24-06
Posts: 691
iTrader: 1 / 100%
Latest Blog:
None

nasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nicenasty.web is just really nice
What is $INVALID_HOSTS_STRING ? Whatever, that's what I see now:

Code:
$ curl -v http://www.2bhk.com/ * About to connect() to www.2bhk.com port 80 * Trying 65.61.156.197... connected * Connected to www.2bhk.com (65.61.156.197) port 80 > GET / HTTP/1.1 > User-Agent: curl/7.15.4 (i386-unknown-openbsd4.0) libcurl/7.15.4 OpenSSL/0.9.7j zlib/1.2.3 > Host: www.2bhk.com > Accept: */* > < HTTP/1.1 302 Found < Date: Mon, 29 Oct 2007 15:15:56 GMT < Server: Apache < Accept-Ranges: bytes < Status: 301 Moved Permanently < Location: http://www.makaan.com/ < Content-Length: 0 < Connection: close < Content-Type: text/html; charset=ISO-8859-1 * Closing connection #0
If I where you, I would add this to .htaccess file:

Code:
RewriteCond %{HTTP_HOST} ^www.makaan.com RewriteRule (.*) http://www.makaan.com/$1 [R=301,L]
nasty.web is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-30-2007, 03:28 AM   #3 (permalink)
Member
 
Join Date: 07-24-07
Location: Mumbai
Posts: 48
iTrader: 0 / 0%
Latest Blog:
None

Red devil is liked by many
Send a message via MSN to Red devil
thanks for the help mate..
Red devil is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-30-2007, 07:20 AM   #4 (permalink)
Banned
 
CodeR's Avatar
 
Join Date: 10-27-07
Posts: 107
iTrader: 0 / 0%
Latest Blog:
None

CodeR is liked by many
yea problem sorted
CodeR is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Marketing Forums > SEO Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the best 404 error or redirect page? THE X FILES Web Usability 24 08-06-2009 04:54 AM
404 Redirect to Home page Jazzee Coding Forum 4 10-07-2008 04:23 PM
how to redirect old page url's to the new ones svinus SEO Forum 8 12-20-2006 12:12 AM
Redirect page DOS Coding Forum 6 08-07-2004 01:20 PM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 09:43 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.