Hi people
I'm trying to write some rules in a .htaccess, but It seems that I'm not thinking it right, so I'll appreciate some help. I know that this very question, or at least some very similar have been asked lately here, but honestly, in my limited understanding, I haven't found one that helps me, but I'll try to keep looking
I have a site in my computer, let's call it example_1.local, that site works fine, and I can access everything as expected, I also have another site, quite similar, called example_2.local, what I want to do, is copy/move those two sites to a new, shared folder and access them by a different name and structure.
I'll try to explain it better.
This is the folder structure that is working right now.
folders -> url to access
/
/example_1 -> example_1.local
/example_2 -> example_2.local
This is what I want
folders -> url to access
/
/example_3
/example_3/example_1 -> example_3/example_1/
/example_3/example_2 -> example_3/example_2/
and of course, some other requests like example_3/example_1/content/, example_3/example_1/help/, etc.
Some relevant information is that both, example_1 and example_2 have an .htaccess with some rules to redirect all requests to the root index.php except some specific file types; something like this:
RewriteCond %{REQUEST_URI} !/robots.txt [NC]
RewriteCond %{REQUEST_URI} !/*.css [NC]
RewriteCond %{REQUEST_URI} !/*.dtd [NC]
RewriteCond %{REQUEST_URI} !/*.js [NC]
RewriteCond %{REQUEST_URI} !/*.jpg [NC]
RewriteRule (.*) /index.php
So, should I rewrite those two .htaccess?, should I write one new .htaccess in the example_3 folder and delete the ones in _1 and _2?
How should I write them?.
Thanks a lot.