apache - Redirect site with .htaccess but exclude one folder -


I want to redirect 301 to a whole website, but to include every folder in a folder called 'upload' Exists in the directory.

Can we circumvent it?

I googled for this, but did not come up with anything, or I do not think what I saw was right.

Try this rule:

  RewriteRule overwrite engine! ^ This rule matches any URL path  ()  starts with either  / upload  or  / upload /  (leading  /  path is missing in the format due to the prefix removal When used in .htaccess files) and  example.com  on the related path to the request. 


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -