Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache and trailing slash rewrite issue

Status
Not open for further replies.

emAlbum

Programmer
Oct 18, 2004
2
0
0
US
Hello,

I am having an issue that I could use some help with. I have a domain that is hosted on server 1. I also have a subdomain that is hosted on server 2. This works fine until on server 2 I enter a URL like:

subdomain.mydomain.com/folderName

mod_dir or mod_rewrite (not sure which) is supposed to add the trailing slash and redirect, however it is redirecting to server 1
And since folderName does not exist, I get a 404 error. So my question is, how come it does not redirect to subdomain.mydomain.com/folderName/ and how do I make it so it does?

Thanks for any info...
 
Are you using DNS to resolve subdomain.mydomain.com?

What exactly is the directive that you used to redirect the URL?
 
mod_dir will use whatever you set the ServerName directive to in httpd.conf. First of all, I'd check the configuration.

(mod_dir should do this redirect.)

I'm assuming these are two physically seperate servers? Or is one server using vhosts?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top