Topic: Complex Rule, To find a solution, Please
|

|
| Author |
|
so2omax Newbie

Joined: 29 September 2008
Online Status: Offline Posts: 4
|
| Posted: 08 October 2008 at 10:59pm | IP Logged
|
|
|
Question one :
RewriteCond %{HTTP_HOST} ^(.+)\.abc\.com$ RewriteRule .? /test.php?id=%1 [NC,L]
To achieve the above rules, such as :
If RewriteCond match to the www or the resolution does not specify how the characters do?
Question two :
But if I want to pass parameters to achieve more than what to do ?
such as :
|
| Back to Top |
|
| |
Vyacheslav Moderator Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 673
|
| Posted: 09 October 2008 at 5:23am | IP Logged
|
|
|
Hi,
Please try this:
Code:
RewriteCond %{HTTP_HOST} ^(?!www)(.+)\.abc\.com$
RewriteRule (?!product).* /test.php?id=%1 [NC,L]
RewriteCond %{HTTP_HOST} ^(?!www)(.+)\.abc\.com$
RewriteRule ^/product-(\d+)-(\d+)\.html$ /test.php?id=%1&page=$1&mask=$2 [NC,L]
|
|
|
__________________ Kind regards!
Vyacheslav Shinkarenko, HeliconTech.
|
| Back to Top |
|
| |
|
|
If you wish to post a reply to this topic you must first login
If you are not already registered you must first register
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You can vote in polls in this forum
|