You are not logged in.

#1 2005-10-20 05:21:39

sud_crow
Member
From: Argentina
Registered: 2003-06-30
Posts: 546
Website

Redirecting web server root folder

Hi,

I was wondering how can i redirect my www.domain.com to www.domain.com/folder

A bit of backgroun info: I have several "parts", like a CMS, a forum and a wiki, and they are all in separate folders, i wish to keep it that way, and leave the root of the server as clean as i can.

Ive been searching, and read about mod_rewrite, touching everything inside Webmin, and trying with .htaccess, but i cant get it to work... can someone lend me a hand?

Thanks in advance.


Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux

Offline

#2 2005-10-20 05:37:30

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Redirecting web server root folder

simplist solution?
in your root web folder..create a php file..

<?php
header('Location: http://www.domain.com/folder');
?>


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-10-21 03:23:41

sud_crow
Member
From: Argentina
Registered: 2003-06-30
Posts: 546
Website

Re: Redirecting web server root folder

Thanks cactus. It worked just fine...

Although i have a question, this is the "simplest", which would be the best? (if there is, i mean from the security, standars and that kind of view)


Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux

Offline

#4 2005-10-21 04:14:33

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Redirecting web server root folder

hmm. maybe a mod_rewrite rule with apache.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

Board footer

Powered by FluxBB