htaccess rewrite rule not loading site content

Posted by peter on Stack Overflow See other posts from Stack Overflow or by peter
Published on 2009-08-13T19:10:38Z Indexed on 2010/04/09 1:03 UTC
Read the original article Hit count: 368

Filed under:
|
|

I am struggling with .htaccess rewrite rules. Let's say I have this URL.

localhost/site/index.php

and I want to rewrite it as this URL

localhost/site/tutorial

I would use this RewriteRule

Options +FollowSymLinks
RewriteEngine on

RewriteRule ^tutorial/(.*)$ /up/index.php

The page works, but the CSS files don't load.

Also, if I have a URL like this:

index.php?page=home

Then I would have to parse through that URL to get 'home' not using $_GET anymore correct??

© Stack Overflow or respective owner

Related posts about mod-rewrite

Related posts about .htaccess