Saturday, 15 May 2010

redirect - Redirecting every page in Apache after a certain segment? -



redirect - Redirecting every page in Apache after a certain segment? -

right in .conf file, i've got page redirecting /zzzzz/ so:

rewriterule ^/*xxxx/yyyyyyyy/*$ /zzzzz/ [l,r=301,nc]

how can configure subdirectory after /yyyyyyyy/ redirect /zzzzz/, without pointing them individually?

like this:

rewriterule ^/*xxxx/yyyyyyyy/(.*)$ /zzzzz/$1 [l,r=301,nc]

apache redirect

No comments:

Post a Comment