|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
mod_rewrite
Hi all,
I'm trying to get our teams website to redirect anything from the main domain to a subfolder including all directories. For example: prhsrobotics.com/ => prhsrobotics.com/team prhsrobotics.com/folderA => prhsrobotics.com/team/folderA I know it has to do with Apache's mod_rewrite (though you'd think there'd be something in cPanel to do this, idk), but I am terrible at Apache and regular expression stuff. I've had results from Google, but none seem to work. Help? Thanks -Tanner |
|
#2
|
||||
|
||||
|
Re: mod_rewrite
Here are a few references on managing redirects in cPanel.
https://my.rochen.com/index.php?fuse...a rticleId=84 http://www.youtube.com/watch?v=heoD2HdOKqc |
|
#3
|
||||
|
||||
|
Re: mod_rewrite
Alternatively, you can try using
<?php Header("Location:http://www.google.ca"); ?> This has to be a part of a php file. It probably wouldn't work for .html but I haven't tried it. For HTML, you can use <meta http-equiv="refresh" content="0; URL=http://www.google.ca"> Good Luck! Last edited by Flyin' Axe : 23-08-2009 at 12:26. Reason: changing the value of content to instantly redirect |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|