hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : subdomains trailing slash
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

subdomains trailing slash

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-05-2007, 09:35 PM
HD Fanatic HD Fanatic is offline
Web Hosting Master
 
Join Date: Jan 2005
Posts: 2,099

subdomains trailing slash


In cpanel > subdomains. I want to redirect topsites.mydomain.com to mydomain.com/topsites

I inputted mydomain.com/topsites for some odd reasons, it goes to mydomain.com
However, when I type mydomain.com/topsites/ (with a trailing slash) it goes to the its intended page. I remember I didn't have to add the trailing slash before.


Last edited by HD Fanatic; 02-05-2007 at 09:41 PM.
Reply With Quote


Sponsored Links
  #2  
Old 02-05-2007, 09:45 PM
sojish sojish is offline
Junior Guru Wannabe
 
Join Date: Mar 2005
Location: India
Posts: 68
Looks like a case of missing mod_dir module in apache.

__________________
Whats wrong in an innocent cup of tea ?
-----
Bobcares.com

Reply With Quote
  #3  
Old 02-05-2007, 09:52 PM
HD Fanatic HD Fanatic is offline
Web Hosting Master
 
Join Date: Jan 2005
Posts: 2,099
mod_dir module is loaded in apache 1.3.37

Reply With Quote
Sponsored Links
  #4  
Old 02-06-2007, 12:31 AM
ByteFortressAaron ByteFortressAaron is offline
Junior Guru
 
Join Date: Apr 2006
Location: Dallas, Texas USA
Posts: 192
If the subdomain is setup correctly you shouldn't need to forward it to /topsites as it would already be a subdirectory configured. Cpanel offers options for both topsites.yourdomain.com and yourdomain.com/topsites all within the subdomain feature.

__________________
** ByteFortress Technologies ** - Instant Setup Remote Backup Solutions
===== Encrypted Remote Backup Solutions with Instant Setup =====
** TheByteShack.com - Shared Hosting ** - 'Gimmick-less' High Performance Webhosting Solutions.

Reply With Quote
  #5  
Old 02-06-2007, 12:33 AM
ServerNinja ServerNinja is offline
LORD OF THE RINGS
 
Join Date: Dec 2005
Location: Internet
Posts: 1,317
Add/edit the following entry in its virtualhost entry.
Quote:
UseCanonicalName Off
Then, restart the apache service and check the same again.

Reply With Quote
  #6  
Old 02-06-2007, 12:34 PM
HD Fanatic HD Fanatic is offline
Web Hosting Master
 
Join Date: Jan 2005
Posts: 2,099
Quote:
Originally Posted by linuxcares
Add/edit the following entry in its virtualhost entry.


Then, restart the apache service and check the same again.
I have this setting ON before on old server, don't think it's the cause.

Reply With Quote
  #7  
Old 02-06-2007, 12:39 PM
HD Fanatic HD Fanatic is offline
Web Hosting Master
 
Join Date: Jan 2005
Posts: 2,099
Quote:
Originally Posted by ByteFortressAaron
If the subdomain is setup correctly you shouldn't need to forward it to /topsites as it would already be a subdirectory configured. Cpanel offers options for both topsites.yourdomain.com and yourdomain.com/topsites all within the subdomain feature.
the subdomain is an addon domain ( forum.mydomain.com) --> /public_html/forum

I tried to remove redirection but it wouldn't work. topsites folder is in public_html/forum/topsites if I type topsites.mydomain.com it goes to /public_html/topsites/ which is a blank page.

here is the .htaccess inside /public_html/topsites/

RewriteEngine on
RewriteCond %{HTTP_HOST} ^topsites.mydomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.topsites.mydomain.com$
RewriteRule ^(.*)$ http://www.mydomain.com/topsites/$1 [R=301,L]


Last edited by HD Fanatic; 02-06-2007 at 12:46 PM.
Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Aussie Web Host DWHS Rebrands to WebHost.pro, Adds Plans and Features Web Hosting News 2013-02-14 14:41:25
Microsoft Reaches Settlement with Nitol Botnet Host 3322.org Web Hosting News 2012-10-05 13:13:16
Web Hosting Sales and Promos Roundup – June 22, 2012 Web Hosting News 2012-06-22 16:36:15
LulzSec Hackers Retaliate After Arrests, Deface Dozens of Panda Security Subdomains Web Hosting News 2012-03-08 10:41:26
Linux Foundation Website Down After Security Breach Last Week Web Hosting News 2011-09-12 20:32:11


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?