Your hosting can make or break your site. Choosing the right host will undoubtedly determine your fate. Here you\'ll learn how it\' done.  Home Site Maintenance Hosting Services Introduction to .htaccess
Your Ad Here

Introduction to .htaccess

Browse Pages: << < 5  6  7  8  9  > >>

Image from Hosting Services: Redirection

Have you changed the navigation structure of your website by moving or deleting pages of your site? If a visitor has the old page bookmarked or comes from a link on another site to it, they will receive a 404 error; page can not be found. Solve this by redirecting the visitor to the new page. The method below will save you time; you will not have to create a seperate page letting the visitor know where the page has moved.

In your .htaccess file, add the following to the next available line. If you don't have one, a .htaccess file will need to be created. (Please refer to the Introduction to .htaccess files tutorial to find out how to use and create .htaccess files.)

Redirect /olddirectory/oldfile.html http://site.com/newdirectory/newfile.html

All you have to do to the code above is change the old and new file paths.

That's it. From now on when a visitor tries to access a file that has been moved, they will be redirected to the new one.



Author's URL: Depiction.net
Thank you for voting.
Rate this Materials:
Bad 
1 2 3 4 5 Excellent
Browse Pages: << < 5  6  7  8  9  > >>
print this page subscribe to newsletter subscribe to rss

Read about the most important web services: web promotion, domain registration and website hosting. All web developers need this website maintenance stuff. More Site Maintenance: Most Popular Materials | Fresh Materials | Website Templates

Add comments to "Introduction to .htaccess"

Only registered users can write comment

No comments yet...