Link to home
Start Free TrialLog in
Avatar of arndale65
arndale65

asked on

Mod_Rewrite help for a noob please

I want to rewrite all URLs of the form:

http://www.site.com/push20/dir1/dir2/afile.html

to

http://www.site.com/dir1/dir2/afile.html

I.e. lose the 'push20' bit

Ive tried with:

   RewriteEngine On
   RewriteRule   ^push20/(.*) /$1 [R]

Open in new window


but its not happening....

Suggestion please!
Avatar of ravenpl
ravenpl
Flag of Poland image

Looks good if put in .htaccess
Have You put that in .htaccess or apache config file?
Avatar of arndale65
arndale65

ASKER

httpd.conf
ASKER CERTIFIED SOLUTION
Avatar of ravenpl
ravenpl
Flag of Poland 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
That's it! - thanks a million