Here is my localhost folder structure:
•www (wamphost folder)
•example.com (folder)
•index.php
With the current the URL results:
localhost/example.com/
The URL I would like is:
localhost/example.com
What I would like:
My intention is remove the slash beside URL, but I tried so many ways and still no clue how. I am new to rewrites and no matter how I change the URL keep adding the slash by itself.
My .htaccess file:
Options +FollowSymLinks -MultiViews -Indexes
RewriteEngine On
DirectoryIndex index.php
DirectorySlash Off
RewriteRule ^example.com$ /domain.com/index.php [L,E=LOOP:1]
RewriteCond %{ENV:REDIRECT_LOOP} !1
RewriteRule ^example.com/$ /domain.com [R=301,L]
RewriteCond %{ENV:REDIRECT_LOOP} !1
RewriteRule ^example.com/index.php$ /domain.com [R=301,L]