FRIHOST • FORUMS • SEARCH • FAQ • TOS • BLOGS • COMPETITIONS
You are invited to Log in or Register a free 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
Related topics
htaccess Password Protection
.htaccess tutorial
Custom error pages using .htaccess
htaccess
.htaccess -- redirecting an I.P. range
secure subdomain .htaccess problem.
40Frih for Help with .htaccess problem
why every few minutes I have to login?
Server Side Redirects vs. META Redirect?
wheq
.htaccess redirect?
Where are my new stats?
301 redirection in PHP and .htaccess
htaccess redirect
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

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