mod_rewrite problem

Ok, right now, I have the following:

RewriteRule ^articles/([0-9]+)/?$ /index.php?page=articles&id=$1

Works just fine, but the problem is, all my HREF's come out to:

It should be:

They are missing the actual "index.php" in HREF's, is there a way to change the pattern to include that?
Who is Participating?
Use this if you want to convert to

RewriteEngine on
RewriteRule ^/articles/([0-9]+)/$ /index.php?page=articles$id=$1 [R]

use [R] to tell to browser that document moved...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.