: How Do I Remove A Subfolder Using Htaccess? I am trying to remove /view from example.com/businesses/view so you can go to example.com/businesses and it works correctly. Here's what's in my htaccess
I am trying to remove /view from example.com/businesses/view so you can go to example.com/businesses and it works correctly. Here's what's in my htaccess already:
DirectoryIndex index.php
RewriteBase /
RewriteEngine on
RewriteCond !^(index.php|images|css|js|robots.txt|favicon.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/ [L]
I plan to do this to multiple directories, so how would I go about that?
More posts by @Reiling115
1 Comments
Sorted by latest first Latest Oldest Best
In example.com/businesses/.htaccess
write the following:
RewriteEngine on
RewriteRule ^view$ example.com/businesses [R=301]
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.