Forums / Install & configuration / URI and .htaccess?

URI and .htaccess?

Author Message

Philippe VINCENT-ROYOL

Friday 08 February 2008 7:15:20 am

Hello,

I want to change url from <b>http://www.example.com/dir1/dir2/article</b> to <b>http://www.example.com/dir2/article</b>
How can i do this? I've try with a rewritingrule like

RewriteRule ^dir1/(.*)$ /$1 [R,L]

Someone can help me please?
Thanks

Certified Developer (4.1): http://auth.ez.no/certification/verify/272607
Certified Developer (4.4): http://auth.ez.no/certification/verify/377321

G+ : http://plus.tl/dspe
Twitter : http://twitter.com/dspe

Nicolas Martinez

Monday 11 February 2008 9:41:25 am

hi,

you can try this:

RewriteRule ^(.*)$ /dir1/$1 [L] 

NMartinez