Ok, this seems kinda wierd, but when I type the address of my stylesheet (http://example.com/cms/stylesheet.php?templateid=20) directly into my browser address bar, it returns a blank style sheet. (http headers tell me 200ok; 0 content length)
However, the styles are still being applied to the site becuase I can make changes through the admin panel and they are applied.
Anyone else have this happen to them and have any idea whats going on. I've tried several browser and I don't think its a cache issue.
On a somewhat related note, anyone have any ideas on how to make pretty urls for the stylesheets without hardcoding them? Something like http://example.com/stylesheets/templateid/mediatype/
Thanks for the help.
Edit:
If you select a stylesheet that doesn't exist you should get a 404 or something, not just a blank page.
[Solved] Why are my stylesheets blank?
-
- New Member
- Posts: 6
- Joined: Wed Jul 18, 2007 3:41 pm
[Solved] Why are my stylesheets blank?
Last edited by junkmailtrapenator on Fri Jul 27, 2007 5:26 pm, edited 1 time in total.
Re: Why are my stylesheets blank?
doublecheck that you have the correct templateid
and for the pretty urls try something like
RewriteRule ^(stylesheet/(\d+)/(.+)/)$ stylesheet.php?templateid=$1&mediatype=$2 [QSA]
and for the pretty urls try something like
RewriteRule ^(stylesheet/(\d+)/(.+)/)$ stylesheet.php?templateid=$1&mediatype=$2 [QSA]