Andreas Posted October 23, 2012 Share Posted October 23, 2012 Hey Guys I need some help with my integration. I updated my website design and got it all integrated, and it looks awesome. (I did it myself). All do all my sites with .php ext. so I can use the includes options. So I can make one change in a file and it will change on all pages. This time I figured out how to use the includes in the WHMCS templates, so now when I make a change it will be on my website and WHMCS templates. Very nice. Now this is the issue I am seeing. My website is located in folder /website My whmcs is located in /support. SO the issue is the links in my header and footer will not work when users are browsing in the WHMCS. So im guessing I could just use absolute paths in the links, but I do prefer to relative paths. So I was wondering if this is possible... - have the ability to update one file still and links will work for both website and whmc header/footer while using relative paths. I appreciate any ideas you guys have 0 Quote Link to comment Share on other sites More sharing options...
bear Posted October 24, 2012 Share Posted October 24, 2012 I do prefer to relative paths You can still use relative paths, but they need to be root relative instead of document relative. root: /folder/file.ext doc: ./file.ext (or simply file.ext) or ../file.ext (up one folder) absolute: /home/user/www/folder/file.ext for internals, or http://www.so on and so on for external 0 Quote Link to comment Share on other sites More sharing options...
Andreas Posted October 25, 2012 Author Share Posted October 25, 2012 Ah I never thought of that. Use /home/user/public_html/website I will try that thanks bear 0 Quote Link to comment Share on other sites More sharing options...
bear Posted October 25, 2012 Share Posted October 25, 2012 To be clear, that's only for the include file. For links to work for visitors, it needs to be root relative (/dir/file.ext) or absolute (http://...). 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.