UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Web Hosting and Domains > Web Hosting Forum

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 24-01-2007, 14:14
Junior Member
 
Join Date: Jan 2007
Posts: 24
Default Addon domain problems with my Web hosting account

Hi.

I have created an addon domain called 'test'. This had created a subdirectory in public_html. So, at the moment, ht*p://thesitename.com/test/ points to public_html/test/.

I would like to install a number of systems (e.g. a content management system and photo gallery) in subdirectories of public_html/test/, one of which will be responsible for displaying the web website hosting.

What Apache directives can I use in a .htaccess file to make ht*p://thesitename.com/test/ point to public_html/test/cms/ ? I am hoping that there's a simpler way than using mod_rewrite to do this.

Note: I am familiar with Apache and mod_rewrite, but I have been having some problems using it with the eukhost setup (I get a 500 Internal Server Error). If there is no simpler way than using mod_rewrite I will post my config in case someone can help.

Many thanks in advance (that's optimism for you ).

Stephan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 24-01-2007, 15:13
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,771
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Hello Stephan,

We can do this for you by making changes in httpd.conf of the server. I am not sure how to do this using mod_rewrite or any other method.

You need to wait for some other members of forum to reply as they may have some other method to do this using coding.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 24-01-2007, 16:13
Junior Member
 
Join Date: Jan 2007
Posts: 24
Default

Thanks.

I'd rather not have eukhost apply the settings, because there will be times when I want to change them frequently.

I am sure it should be possible with mod_rewrite, but I'm getting a 500 Internal Server Error. I have done some tests, as follows:

I have 2 addon domains, test and test1. Both directories (public_html/test and public_html/test1) contain an index page. The following rewrite rules in public_html/test/.htaccess will correctly show the test1 index page when visiting the ht*p://thesitename.com/test/

Code:
RewriteEngine On
RewriteRule ^(.*)$ /test1/$1 [L]
However, if I change this to a point to a subdirectory of test, as follows, I get a 500 Internal Server Error.

Code:
RewriteEngine On
RewriteRule ^(.*)$ /test/subdir/$1 [L]
An ideas any one?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-02-2007, 18:54
Junior Member
 
Join Date: Jan 2007
Posts: 24
Default

I figured this out. The 500 Internal Server Error was caused by an infinite loop. The solution was to add a rewrite condition that stops the processing if the URL has already been rewritten, like so:

Code:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/test/subdir/
RewriteRule ^(.*)$ /test/subdir/$1 [L]

Last edited by brighter; 01-02-2007 at 18:56. Reason: correct typo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-02-2007, 19:16
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,771
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Ummm.

Thanks for the information. I don't understand much about mod_rewrite rules but I will bookmark this thread for future reference.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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


All times are GMT. The time now is 18:44.

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles

Web Hosting
Web Hosting Service