|
|
#1 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in Apr 2004
Lives in South Texas USA
Hosted on ChopChop
183 posts
Gave thanks: 10
Thanked 7 times
|
Losing my hair over #include
Here's what I want/have.....
main site cbcog98.org plus cjd.cbcog98.org There are other subs but this is the "test bed" from the main site index.shtml all works and includes [header, nav, footer] are in that folder. All works here Now when doing http://cdj.cbcog98.org the only way to have the includes work is to put a copy in the cdj sub-domain[folder] I want all subs to use the "main" includes Currently working is <-- #include file="footer.html" --> with footer.html in cdj.cbcog98.org Have tried using <-- #include virtual="/footer.html" for using main....that gets an error every combination using "virtual" has failed also..... My .htaccess reads: RewriteEngine on RewriteCond %{HTTP_HOST} ^$ [OR] RewriteCond %{HTTP_HOST} ^www.$ RewriteRule ^(.*)$ http://cbcog98.org [R=301,L] <Files 403.shtml> order allow,deny allow from all </Files> Thanks for any explainations and help --wap3
__________________
--wap3 If we removed all of the "Oxygen Thiefs" [tm] from politics, maybe the earth would not have a Greenhouse Gas problem.
|
|
|
|
|
|
#3 (permalink) |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
|
or include ../
that takes you UP one level.
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|
|
|
#4 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Sep 2005
Lives in Hua Hin
Hosted on pass41
10 posts
Gave thanks: 0
Thanked 0 times
|
actually it doesnt.
Expl: www.yourdomain.com/subdomain - this is the folder for the subdomain subdomain.yourdomain.com - is a root folder so when you work with http://subdomain.yourdomain.com you cannot access any files with ../ from www.yourdomain.com.
__________________
siamsites.com Loves pass41
|
|
|
|
|
|
#5 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Dec 2005
Lives in Indianapolis
5 posts
Gave thanks: 0
Thanked 0 times
|
Any updates
Have you made any headway on finding a way to call your includes? I have recently started using them where I work since I am managing a larger site, but they use .asp extensions and I think (from other posts in this formum) surpass will be using cgi call formats.
I have been naming my page with the calls with the .asp extension and using a direct file path to a folder with the includes. site root subfolder - my page with the includes resides here and calls the includes from a folder named "asp" that resides in this subfolder. all of my includes are named with the .asp extension as well. None of the includes are called. Any thoughts? Have you found something that worked? |
|
|
|
|
|
#6 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Dec 2005
Lives in Indianapolis
5 posts
Gave thanks: 0
Thanked 0 times
|
Figured out my problem. Maybe yours too who knows. All I had to do was rename my file that had all of the includes with the ".shtml" extention. ".shtm" will not work unless you set it up under the Apache handler (I am guessing). Anyway, it is calling them correctly and my page now comes together.
|
|
|
|
|
|
#7 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in Apr 2004
Lives in South Texas USA
Hosted on ChopChop
183 posts
Gave thanks: 10
Thanked 7 times
|
thanks wicked1 for the info
but I think that siamsites really hit the nail.... using includes you can't do ../ParentFolder/include.shtml and subdomain.domain.com is a "root" folder for subdomain I really have not had time the last few weeks to work on it but it sure looks like I "hit the stump" on the root folder issue --Trey Patttillo
__________________
--wap3 If we removed all of the "Oxygen Thiefs" [tm] from politics, maybe the earth would not have a Greenhouse Gas problem.
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|