FORUM HOME | WHUK BLOG   
WEB HOSTING UK AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM
PHP LINUX SHARED HOSTING WINDOWS ASP.NET HOSTING PACKAGES
ECOMMERCE HOSTING ASP MSSQL MS ACCESS ODBC FRONTPAGE HOSTING
CPANEL WHM FANTASTICO RESELLER DEDICATED SERVER WEB HOSTING
CHEAP PLESK CPANEL HTML MYSQL BEST UK VPS HOSTING COMPANY
CHEAP RELIABLE UK HOSTING PROVIDER SINCE 2001
MANAGED WEB HOSTING SERVICE
AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM

Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum » Technical Support » Windows Shared Hosting

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 08-07-10, 02:20 AM
perplexed's Avatar
Member
 
Join Date: Jan 2009
Posts: 43
Default Simple SSI code works on main domain pages but not subdomain

For years i have had a simple piece of 'Server Side Includes' code that displays the date on pretty much each page of my site. This has always worked and still is working perfectly on my main domain. However, i've just noticed that three pages which are exact copies of three on my main site, but are on pages in a subdomain don't show the date. Does this mean i need to set something within the subdomain settings?

I've just been navigating through the laboriously slow and (to me) confusing plesk interface and am going round in circles trying to find what needs to done

The code snippet is Server Side Includes
Code:
<!-- #echo var="DATE_GMT" -->
Everything but the date is ok all three pages are word for word the same as on the main domain. It will show,

'Today's Date Is ~~~If this is not today's date, refresh page for updated version.', which omits the date.

The pages on the main domain show,

'Today's Date Is Thursday July 08 2010~~~If this is not today's date, refresh page for updated version'.

I'm using the Windows Shared Hosting.

Anybody any ideas as to the problem?
Reply With Quote

  #2 (permalink)  
Old 08-07-10, 03:25 AM
System Admin
 
Join Date: Jan 2010
Posts: 7
Post

If the sub-domain is created as a physical hosting then it creates a folder outside httpdocs directory of your main site.So I would request you to use a separate .htaccess file under this sub-domain and append the above SSI code and check if this works for you.
Reply With Quote

  #3 (permalink)  
Old 08-07-10, 03:18 PM
sysadmin's Avatar
Administrator
 
Join Date: Oct 2006
Posts: 296
Default

Hi Paul,

Could you please make sure that you've having the sub domain's set to use SSI?

ie: Login to Plesk > Click on your main domain > Sub Domains > sample-sub-domain.com > Setup > SSI
__________________
Regards,
Jack Daniel.

Cloud Hosting || Managed Dedicated Server || Webhosting UK Knowledgebase
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

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

Forum Jump


All times are GMT. The time now is 04:08 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Copyright 2001-2010 Web Hosting UK. All rights reserved.
Web Hosting UK Forum





Site Map

Shared Cloud
Shared Cloud From £1

Affiliate Program
Earn up to £300 Per Sale

Dedicated Servers
Dedicated Server Hosting

Cloud Hosting
Cloud Server Hosting

Load Balanced Server
Load Balancing Server

VPS Hosting
Linux VPS Hosting

Windows VPS
Windows 2003 VPS

Zimbra Hosting
Zimbra Email Hosting

cPanel Hosting
Shared Linux Hosting

Windows Hosting
Shared Windows Hosting

Coldfusion Hosting
Windows Coldfusion Hosting

cPanel Reseller Hosting
Reseller Hosting

Windows Reseller
Windows Reseller Hosting

Email Web Hosting
Email Hosting

Semi-Dedicated Server
Semi-Dedicated Hosting

Remote Backup Plans
Offsite Backup Service


cpanel hosting
Knowledgebase Articles

Pre-Sales Question
Web Hosting FAQ's

Dedicated Hosting
Dedicated Server FAQ's

Virtual Private Servers
VPS Hosting

PHP MySQL Hosting
cPanel Hosting

Windows Hosting
ASP MSSQL Hosting

Domain Name
Domain registration FAQ's

CMS Hosting
CMS Hosting FAQ's

Payment Gateways
Payment FAQ's


Support Tutorials

cPanel Tutorials
cPanel Flash Tutorials

Wordpress Tutorials
Wordpress Flash Tutorials

Plesk Tutorials
Plesk Flash Tutorials

PhpMyadmin Tutorials
PhpMyadmin Flash Tutorials

Drupal Tutorials
Drupal Flash Tutorials

Mambo Tutorials
Mambo Flash Tutorials

Joomla Tutorials
Joomla Flash Tutorials

More Hosting Tutorials