Apache Mod Rewrite

Wooo old thread digging!

Brought this thread up again, because I was reading it and trying to implement what is talked about.

Basically I have a site which I am creating and trying to implement some re-write rules so that the following will happen

' http://www.domain.com/news/12/ ' will actually be referring to ' http://www.domain.com/news.php?id=12 '

I'm currently working on my local pc though, and the domain is like this:

' http://172.16.0.117/sitename/ '

Code:
Options +FollowSymlinks
RewriteEngine on
RewriteBase /sitename/
RewriteRule news/([0-9]+)/?$ news.php?id=$1

I'm using the above .htaccess rules, but when I goto ' http://172.16.0.117/sitename/news/12/ ' The page and it's contents load fine, but all my images and css files have not loaded.

They are located in the folder(s) 'images' and 'css' respectively. (Within the 'sitename' folder). I am currently linking to ' /css/styles.css ' in my source code.

What is going wrong? I'm sure it's probably something easy, but like I said I have read the whole thread and some other threads on mod-rewrite and cannot seem to fix the problem. A little bit of a push in the correct direction would be appreciated!! Thanks

:)

Jon
 
Back
Top Bottom