I've been trying to setup mod_rewrite for the longest time and somehow I manage to screw it up every single time I try.
I want to setup up in this way:
I have a tutorials script, which needs 3 vars as of now. (Cat)(id)(view or not)
So the url looks like this right now - tutorials.php?cat=php&id=1&act=view
I tried setting it up so you can view the following:
/tutorials/ - tutorials.php
/tutorials/php/ - tutorials.php?cat=$1
/tutorials/php/1/ - tutorials.php?cat=$1&id=$2&act=view
But the style sheets would get all messed up and none of the images would get parsed so it was super annoying.
What's the right way to do this?
Thanks!
Comments
if you use
[PHP]
include ('stylesheet.css');
[/PHP]
in your header,when your the page referencing it is then your include will actually look in for the stylesheet being included
You would need to use
[PHP]
include ('http://www.whatever.com/stylesheet.css');
[/PHP]
Or whatever the actual link to the stylesheet was.
Hope this helps
i guess putting a single (/) in front of it would fix the problem?
If it doesn't work then a full link would.
right now im working on a fantastic project that is going to be super stunning when its done...and this time NOBODY has ever heard of it
im so excited!
anyways thanks lurkinback