site.com/associates/learn/ reads files in site.com/associates/learn/Mv1.9.4.19/
and
site.com/learn reads files in site.com/learn/Mv1.9.4.19/
I have this so far, but its not letting me get the the associates folder at all. I also would like it to redirect any both Mv1.9.4.19 folders to the correct location (site.com/learn/Mv1.9.4.19/ -> site.com/learn/)
- Code: Select all
RewriteEngine On
RewriteCond %{HTTP_HOST} ^site\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.site\.com$
RewriteCond %{REQUEST_URI} !^/learn/Mv1.9.4.19/
RewriteRule (.*) /learn/Mv1.9.4.19/$1
RewriteCond %{REQUEST_URI} ^/learn/Mv1.9.4.19/
RewriteRule ^/learn/Mv1.9.4.19/(.*) /learn/$1 [R=301]
Thanks so much! I'm still starting to learn this.