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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

php - phpWord - Tables with borders in headers/footers -