Multiple parameters for same .php

New to mod_rewrite? This is a good place to start.

Multiple parameters for same .php

Postby SolidBender » Thu Apr 21, 2005 9:28 am

Hi guys,
I think it is a beginner level question so I posted my message in here :)

First my current .htaccess file;

RewriteEngine on
RewriteBase /
rewriteCond %{HTTP_HOST} !^www\.
rewriteCond %{HTTP_HOST} ^(.+)\.domain\.com
rewriteRule ^([0-9]+)$$2 [P,L]

what i am doing here is; when you put the URL like apache rewrite is as and works fine.

However, when you click the button from the mainpage i'd like to send my URL as and this time my modrewrite doesnt work with my current rules. Is there anyway to create two rules when there is an parameter do rule1 and if there is no parameter do rule2. do you guys have any idea ? hope i did myself clear.

Posts: 3
Joined: Thu Apr 21, 2005 9:20 am

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 11 guests