Link to home
Start Free TrialLog in
Avatar of epifanio67
epifanio67

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of epifanio67
epifanio67

ASKER

it worked!!!!!
Thank you hielo.... I appreciate the help...