I have the following list of wordpress websites in the root of the hosting: - Website1 - Website2 - Website3 - Website4
Until now I had access to each website by following: www.test.com/Website1, www.test.com/Website2 .. and so on. Now I want to reorganize the websites in subfolders, because they are from the same customer. - Website1 - Website2 -Website3 - Website4
But I want to build a specific .htaccess file or to use a php routing library like https://github.com/klein/klein.php to have the same access like from beginning. If I want to access Website3 to make the same request www.test.com/Website3, not http://bit.ly/2UTpEf2
Is there a solution using .htaccess for this rask?
Thanks in advance!
I tried to change the .htaccess. I saw an example in rewrite a folder name using .htaccess
RewriteEngine on RewriteRule ^apple/(.*) folder1/$1
RewriteCond %{THE_REQUEST} ^GET\ /folder1/ RewriteRule ^folder1/(.*) /apple/$1 [L,R=301]
If I want to access Website3 to make the same request www.test.com/Website3, not http://bit.ly/2UTpEf2
Aucun commentaire:
Enregistrer un commentaire