|
||||
Change URL = Traffic Lost?
my blog real url is http://www.liewcf.com/wp/. It is now a PR5 site. I am thinking to change the url to http://www.liewcf.com/blog/
Is it a good idea to do so? If I change the url, I will redirect the current links to the new url. Is it ok? What other things do I need to take note? thanks. |
|
||||
index.php
Code:
<?php header("Location: http://liewcf.com/blog"); ?>
__________________
www.HiveHost.my |
|
||||
301 redirect is the most efficient and search engine friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code "301" is interpreted as "moved permanently".
Below are a Couple of methods to implement URL Redirection IIS Redirect * In internet services manager, right click on the file or folder you wish to redirect * Select the radio titled "a redirection to a URL". * Enter the redirection page * Check "The exact url entered above" and the "A permanent redirection for this resource" * Click on 'Apply' Redirect in ColdFusion <.cfheader statuscode="301" statustext="Moved permanently"> <.cfheader name="Location" value="http://www.new-url.com"> Redirect in PHP <? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.liewcf.com/blog/" ); ?> Redirect in ASP <%@ Language=VBScript %> <% Response.Status="301 Moved Permanently" Response.AddHeader "Location", " http://www.new-url.com" > Redirect in ASP .NET <script runat="server"> private void Page_Load(object sender, System.EventArgs e) { Response.Status = "301 Moved Permanently"; Response.AddHeader("Location","http://www.new-url.com"); } </script> Redirect with htaccess Create a .htaccess file (if does not exists) in your root directory. Redirect permanent / http://www.new-url.com |
|
||||
thanks for the detail code. I think the code is very useful for others too.
![]() I have moved my blog site to new path. Let's see how long it takes for Google to update the PR of http://www.liewcf.com/blog/ ![]() |
|
|||
it shouldn't affect ur traffic in this case, google will reindex ur blog site soon enough too
![]() |
|
||||
Quote:
btw, haven't answer the question on your title: Change URL <> Traffic lost but Change URL = PR Lost
__________________
Funny Junk / Hottest Blogger / Latest Games / Flower Arrangement / Malaysia Florist / |
|
||||
Quote:
__________________
Funny Junk / Hottest Blogger / Latest Games / Flower Arrangement / Malaysia Florist / |
|
||||
What about Changing the whole URL?
Eg. www.yummy.com.my change to www.yumyum.com.my What should I do to remain the traffic? Can I use 301 as kornflique mentioned earlier? Any side effect?
__________________
|
|
||||
Quote:
Try: Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yummy.com.my
RewriteRule (.*) http://yumyum.com.my/$1 [R=301,L]
|
|
||||
I am changing the whole URL inclusive of folder name.
eg.www.yummy.com.my/folder1/ change to www.yumyum.com.my/folder2/ Within the same folder (eg. folder2), there are html and php files, then what should I write in .htacess?
__________________
|
|
||||
Quote:
Code:
RewriteEngine On RewriteBase /folder1/ RewriteRule ^(.*)$ /folder2/$1 [R=301,L] ![]() |
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |













Linear Mode