: Redirect all urls to a subfolder I have several old, broken urls that looked like this: http://www.easyjob.net/partners/whatever.html I would like to redirect them all to http://www.easyjob.net/partners/general/
I have several old, broken urls that looked like this: www.easyjob.net/partners/whatever.html
I would like to redirect them all to www.easyjob.net/partners/general/
The following rule won't work, as the "destination" url will trigger the same rule again, and I'll get a "too many redirects" error.
How can I match any html file inside the /partners/ folder but without matching anything in the /partners/general/ subfolder?
Thanks!
More posts by @Ravi8258870
1 Comments
Sorted by latest first Latest Oldest Best
Try something like this:
RewriteCond %{REQUEST_URI} !partners/general/(.*)?
RewriteRule partners/(.*) www.easyjob.net/partners/general/ [R=301]
You may need to tweak the RewriteCond to meet the exact exclusion you're looking for.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.