All this day, i search to hide several words in the URL in HtAccess without success
I search to have the last folder in several URLS on the same server
Code: Select all
If i have this URL
http://kcc.com/FoderA/FolderA1/FolderA2/FolderA3/FolderA4/index.php
i want have this adress
http://kcc.com/FolderA4/index.php
Code: Select all
or for this adress
http://kcc.com/FolderB1/FolderB2/FolderB3/index.php
i want have this adress
http://kcc.com/FolderB3/index.php
Code: Select all
RewriteCond %{REQUEST_URI} !^/FolderA/
RewriteRule ^(.*)$ /FolderA/$1 [L,QSA]
When i write several rule one after other, only the last works, or worst .....nothing works
Code: Select all
RewriteCond %{REQUEST_URI} !^/FoderA/FolderA1/FolderA2/FolderA3/
RewriteRule ^(.*)$ /FolderA/FolderA1/FolderA2/FolderA3/$1 [L,QSA]
RewriteCond %{REQUEST_URI} !^/FolderB1/FolderB2/
RewriteRule ^(.*)$ /FolderB1/FolderB2/$1 [L,QSA]
If someone know about this complex coding...and can help me
Thanks in advance
Have a good day