hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Software and Control Panels : DirectAdmin automatically redirecting directories?
Reply

Forum Jump

DirectAdmin automatically redirecting directories?

Reply Post New Thread In Hosting Software and Control Panels Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-05-2005, 08:16 PM
kenfused kenfused is offline
WHT Addict
 
Join Date: Jul 2002
Posts: 148

DirectAdmin automatically redirecting directories?


Hello,

When I go to a directory www.mysite.com/name/

IF I have a file name.php, then it automatically redirects to that file.

If I don't have a file "name.php" then it gets a 404 error.

WHY does it automatically go to a filename.php after trying to find a directory that does not exist??
I don't want this to happen. How do I turn this off?

Reply With Quote


Sponsored Links
  #2  
Old 07-05-2005, 11:19 PM
BoggeRs BoggeRs is offline
WHT Addict
 
Join Date: Apr 2005
Location: Canada... EH?!?
Posts: 149
PHP Code:
<?
header
("http://<hostname or ip here>/");
?>
there ya go thats a redirect in php

Edit: it does that because name is considered a directory and you can change what files webserver is looking for ex. index.php index.html and so on and you can add your own...

Name is a directory and it can have its own main php file... i dont know how to explain it very well other then

/name/ - directory
name.php - PHP File

and all you need to do is add name.php to index area i think its in apache someone might be able to help me there

Internet is your friend ... and books

hope that helps a bit -- contact me i can help if you need more explanation or walkthrough -- MSN preffered


Last edited by BoggeRs; 07-05-2005 at 11:25 PM.
Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Linux Malware Operation Windigo Infects 25,000 Web Servers Web Hosting News 2014-03-19 11:44:53
Linode Updates Cloud-Based Load Balancer Service with SSL Support Web Hosting News 2013-11-08 11:50:09
Web Host Tenzing Launches Data Assure for Automated Data Backup Web Hosting News 2012-09-24 10:53:35
CloudLinux Releases New LVE Manager Control Panel Plugin Web Hosting News 2012-09-04 10:36:10
GlobalSign OneClickSSL Plug-in Available with DirectAdmin Web Hosting Control Panel Web Hosting News 2012-08-02 14:21:17


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?