PC Playground  

Go Back   PC Playground > Support > Hosting
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-13-2003, 03:21 AM
CSN CSN is offline
Junior Member
 
Join Date: Feb 2003
Location: USA
Posts: 11
Default Changing root directory or redirecting root to sub-directory

HI again,

I want to install phpnuke to a sub-directory called HTML so that I can have another directory called admin - for phpmyAdmin and other admin stuff.

However when you type in the url (which points to the root directory) the nuke index.php doesn't load because its in the HTML\ subdirectory.

Is there a way to change the the root directory to the HTML one, or is there a way to redirect all urls from pcplaygroun.com/ to pcplayground.com/html/?

I have tried using .htaccess files but the best I could do was have all urls point to the one file: Using DirectoryIndex /html/index.php.

However if I type in pcplayground.com/html/manager/ is still loads the file in /html/index.php and not /html/manager/index.php.

Anyone who know how to do this easily could you please let me know, otherwise I will install phpnuke to the root directory.

I haven't installed it yet because I was waiting to find out how to do it!

Thanks again,

Matt
Reply With Quote
  #2 (permalink)  
Old 05-13-2003, 04:08 AM
Administrator
 
Join Date: Jan 2003
Posts: 1,350
Default

I could move your phpnuke files into the "/" (root dir), so you wont need a redirect.

But you will need to rename your admin dir, as there is already an admin dir in phpnuke.
Reply With Quote
  #3 (permalink)  
Old 05-13-2003, 02:32 PM
Senior Member
 
Join Date: Jan 2003
Location: Springfield, VA/Denton, TX
Posts: 1,166
Send a message via AIM to drawback Send a message via MSN to drawback Send a message via Yahoo to drawback
Default

create a file with the following content, name it index.html and upload it to your root directory.
Code:
<html> <head> <META HTTP-EQUIV="refresh" content="0;URL=http://csn.pcplayground.com/html/index.php"> </head> <body> </body> </html>
that will redirect everyone visiting csn.pcplayground.com to csn.pcplayground.com/html/index.php instantly.

i also put up an example at drawback.pcplayground.com/csnexample.html if you would like to see it in action.
Reply With Quote
  #4 (permalink)  
Old 05-14-2003, 07:42 AM
CSN CSN is offline
Junior Member
 
Join Date: Feb 2003
Location: USA
Posts: 11
Default

Drawback,

I didn't realise it would be that fast otherwise I would have tried that earlier!

LOVING YOUR WORK!!!!

LOVING YOUR WORK!!!!

Thanks again,

Matt
CSN
Reply With Quote
  #5 (permalink)  
Old 05-14-2003, 01:42 PM
Senior Member
 
Join Date: Jan 2003
Location: Springfield, VA/Denton, TX
Posts: 1,166
Send a message via AIM to drawback Send a message via MSN to drawback Send a message via Yahoo to drawback
Default

youre welcome :)
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:22 AM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.