apache - How to mod_rewrite a URL but ignore directories? -
in short: how ignore directories whe doing mod_rewrite?
old site: http://www.domain.com/shop/dir1/dir2/dir2/page.html
new site want "page.html" , redirect him /page.html
longer version tried , tried, failed. hope idea:
we have old site has behind /shop/ , can contain directories followed filename, page.html
my thing is, directories not important... it's last page.
how can ignore between /shop/......filename.html ?
so: old site: http://www.domain.com/shop/dir1/dir2/dir2/page.html
new site want "page.html" , redirect him /page.html
this must easy, don't know!
thanks in advance
Comments
Post a Comment