Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Lionsanime Directory   Improve your ranking, submit to directories   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 08-05-2006, 01:17 AM   #1 (permalink)
Contributing Member
 
Rezo's Avatar
 
Join Date: 03-13-06
Location: Republic of Moldova
Posts: 362
iTrader: 0 / 0%
Rezo is just really niceRezo is just really niceRezo is just really niceRezo is just really niceRezo is just really niceRezo is just really niceRezo is just really niceRezo is just really nice
Send a message via MSN to Rezo
Arrow Search Engine Friendly Redirect - 301

A 301 redirect is executed server-side which means that the visitor is never aware that they have been redirected, there is no time delay like with javascript.

To use the following PHP code you must change the file extension of the file you will be using to index.php instead of index.html.
Now put the following code into your new index.php page, put ONLY this code, no need for <head>, <body> or any other tags.
Change www.yourname.com/page.html to the url the page will be redirecting to.



PHP Code:
CODE     
<?php
header
("HTTP/1.1 301 Moved Permanently"); 
header("Location: yourname.com"); 
exit(); 
?>
Rezo is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding 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

vB 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
Search Engine Friendly Redirect Rezo Coding Forum 11 09-27-2006 01:00 PM
Re-write Url to make website more friendly for search engine. haga SEO Forum 2 09-26-2006 12:37 AM
Search engine friendly box always displays at bottom of screen Jayesh Lodha Coding Forum 3 09-13-2006 06:10 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 04:38 AM.
© Copyright 2008 V7 Inc