Link to home
Create AccountLog 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
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
That's it! - thanks a million