New answers tagged

2

Another way is to use the RedirectMatch directive. RedirectMatch temp "^/folder\ (?!\ /subfolder| /exclude-file1\.html$|\ /exclude-file2\.html$|\ /exclude-dir)(.*)$" \ "/folder/subfolder/$1" As single line RedirectMatch temp "^/folder(?!/subfolder|/exclude-file1\.html$|/exclude-file2\.html$|/exclude-dir)(.*)$" "/folder/...


Top 50 recent answers are included