FRIHOST • FORUMS • FAQ • TOS • BLOGS • DIRECTORY
You are invited to Log in or Register a Frihost Account!

How do i do a redirect wit htaccess?

 


Diebels
Hallo, iīm just building a new site and need to do a redirect ...

eg. www.domain.tld -->www.domain.tld/folder

it should be very fast
any help is apreciated

thanks
Diebels
anticitizen1
Search in google working with .htacces
or apache modules

one way could be using teh MOD Rewrite Module:


Quote:

RewriteRule ^index.html index.php

So if someone visits index.html they get index.php
but they see index.html created on the fly
krazycapital
Another way:
Code:
Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html
Diebels
krazycapital wrote:
Another way:
Code:
Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html


Thanks, was an easy one... Embarassed
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.