unable to rewrite/remap urls, any ideas why? (Apache 2.2)

Hello Experts,

I am having issues with my RewriteRules.... below are my server details:

Server version: Apache/2.2.26 (Unix)
Server built:   Mar  4 2014 19:02:56
Cpanel::Easy::Apache v3.24.11 rev9999

mod_rewrite is enabled...

The rule below works... but it behaves as a redirect

RewriteCond %{HTTP_HOST} ^example\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^/pictures$ "http\:\/\/www\.example\.com\/index\.php\?rt\=pictures" [R=301,L]

Open in new window

My objective is to clean the url... I tried the below code but I doesn't work

RewriteCond %{HTTP_HOST} ^example\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^/pictures$ index.php?rt=pictures [NC,L]

Open in new window

any ideas what I am doing wrong?
any suggestions to test?

thanks for your help.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RewriteCond %{HTTP_HOST} ^(www\.)?example\.com$
RewriteRule ^/?(pictures)$ /index.php?rt=$1 [NC,L]

Open in new window

Put a leading backslash infront of index.php

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
epifanio67Author Commented:
it worked!!!!!
Thank you hielo.... I appreciate the help...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.