FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


[PHP] mod_rewrite





phileplanet
I am having a lot of trouble getting this to work. I don't really know a lot about it but I think I have it som...eciated.

EDIT: Ok actually it works now. I was checking it the wrong way. I do still have a predicament though. Since the file acts like another directory, the images and the style sheets are not linked properly. How would I fix this?
phileplanet
Quote:
I am having a lot of trouble getting this to work. I don't really know a lot about it but I think I have it som...eciated.


EDIT: Ok actually it works now. I was checking it the wrong way. I do still have a predicament though. Since the file acts like another directory, the images and the style sheets are not linked properly. How would I fix this?
shalmoli
Try using absolute paths rather than relative path.
Since mod_rewrite is not true redirection, providing asolute path may help. "Classic" redirection is done with the Location: header of the HTTP protocol, and tells the browser itself to go to another URL. Mod_rewrite 'tricks' the browser, and serves the page as if it were really there - that's why this is an URL rewriter and not a simple redirector . This can be verified from HTTP headers sent and received.
Related topics
.htaccess instead of mod_rewrite
[SOLVED] Using mod_rewrite.
only .htaccess instead of mod_rewrite
75FRIH$ Mod_Rewrite Code
Rebuilt site using php, google seems confused
mod_rewrite - jak sie tego uzywa ? i czy mamy to na frihost
Subdomeny do php
Is ISAPI Supported?
Can you target a <div> like a frame?
Apache mod_rewrite
need help with mod_rewrite rules
mod_rewrite help
Path problem in php
Struggling with mod_rewrite
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.