New to Mod_Rewrite and have some of the basic fundamentals down, but am stuck right now and need a bit o' help from someone who's experienced.

Right now I have a .htaccess page that replaces "index.php?page=pagehere" with "pagehere.php". Well, I want to put another GET variable on the end of "pagehere.php" for handling purposes such as "pagehere.php?id=1241" and it won't pull up or even go through at all as a GET variable.

Any solutions?

Try the following

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?(.*)$ /index.php?page=$1 [L]
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.