How can i add condition for a particular blog in .htaccess

There is a special way of doing it and is totally different to the php if statement. But the way you do it varies depending on what the condition is. Could you tell us what you are trying to test/check/ifcheck.

how to restrict if a particular url came , some of the condition that should not to execute...

how to restrict some of the condition if a particular url came ...

Thanks...

how to restrict if a particular url came , some of the condition that should not to execute...

So you want to check if the url is a specific location? Is that correct? Also I have found a nice tutorial for you at http://corz.org/serv/tricks/htaccess2.php

commented: nice +1

Thanks for ur reply,

But its not check if the url is a specific location...
I specified some url in .htaccess with some condition but those condition should not check for a particular url... how can i do this...

Thanks in advance...

RewriteCond %{REQUEST_URI} test/withregex/index\.php
#something to do here

how can i use if conditon in it...

how can i use if conditon in it...

Like the following

RewriteCond %{REQUEST_URI} test/withregex/index\.php
#something to do here

Where as the first line is the if condition and the second line is what to do if it passes.

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.