one subdomain as cname for another domain, can i have different custom 404 pages

Posted by lucky cool on Stack Overflow See other posts from Stack Overflow or by lucky cool
Published on 2012-06-21T15:12:42Z Indexed on 2012/06/21 15:15 UTC
Read the original article Hit count: 188

Filed under:
|
|
|

Actually I have a domain - domainone.com

I have created a subdomain cname of anoter domain as

abc.domaintwo.com - CNAME as - domainone.com

so that I can use the js and css files e.g domainone.com/js/jquery.js files as abc.domaintwo.com/js/jquery.js

SO Far everything is FINE, no issues at all.

Problem:

I have a custom 404 page for domainone.com and now when that abc.domaintwo.com goes 404 same page appears which i don't want. Any help is appreciated.

Htaccess of domainone.com:

ErrorDocument 404 /404/

All i want is to have different 404 for both.....

Notes: Don't have access to shell for symlinks or alias as I am on shared hosting.

© Stack Overflow or respective owner

Related posts about php

Related posts about .htaccess