Welcome Guest, Not a member yet? Register   Sign In
htaccess: works perfect locally, on production server it fails
#1

[eluser]codex[/eluser]
Ok, what I'm trying to do:

I have a hostgator account where you have one main domain and unlimited add-on domains. Basically the addons are just subfolders. I want all my domains to use the same codebase. I know you can alter the paths in index.php, but that's not what I mean.

For instance, I want to use a global css file, which is fetched via a rule in a htaccess file that resides in the addon folder (this is just a testrule):

Code:
RewriteRule /whatever?$ /home/name/public_html/shared_stuff_folder/global.css

Now this won't work. But when you reference the stylesheet from within the addon domain:
Code:
RewriteRule /whatever?$ /home/name/public_html/my_addon_domain/global.css

it works. Conclusion is that everything you try to reference outside the current addon fails. But in WAMP this works happily. The question is: is it the hostgator setup, or is it a general limitation? I would think not, why else would it work in WAMP?

Anyway, I contacted hostgator support, but the answer wasn't really helpful. So, maybe there's another way of achieving this that you guys may know of. Is my rule correct? Is there something missing?

Help is welcome! I'm about to go mad ;-)




Theme © iAndrew 2016 - Forum software by © MyBB