Help for rewrite condition

Dear All

Help to rewrite condition for

RewriteRule ^firstpage/?$ index.php [NC] //

when typed 127.0.0.1/mydomain.com/firstpage

index.php will be displayed

I want RewriteCond

for the RewriteRule : RewriteRule ^firstpage/?$ index.php [NC] //

so that when we type

http://www.mydomain.com/index.phop

it should display
http://www.mydomain.com/firstpage

vikaspa,

You’ve got it backward. Have a read of the mod_rewrite tutorial linked in my signature.

Regards,

DK