Regular Expression

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dheeraja
Forum Commoner
Posts: 36
Joined: Tue Nov 09, 2010 11:03 pm

Regular Expression

Post by dheeraja »

Hi Guys I am going through the regular expression and somewhere I got two rewrite rules with regular expression, but I am not exactly getting that what is mean of it, expressions are:

rewritecond %{HTTP_HOST} !^www.example.com$ [NC]
rewriterule ^(.*)$ http://www.example.com/[b]$1 [R,L] [/b]

Please tell me that what is the bold part telling, please help me..

Thank you
Post Reply