Hi Developers,
I currently have a dedicated server running on Apache (with Plesk as its control panel) and I am in need of a custom .HTACCESS file that will perform the following tasks for my basic HTML-based website...
1) Remove the trailing slash from ALL directories ...
E.g., [login to view URL] should be [login to view URL]
2) 301 all [login to view URL] and [login to view URL] files within ALL directories to the parent directory (including the root folder)
E.g., [login to view URL] should 301 to [login to view URL]
E.g., [login to view URL] should 301 to [login to view URL]
*Make sure it 301's only 1 LEVEL up so if its in a subdirectory such as *.com/directory/subdirectory/[login to view URL] it will 301 to *.com/directory/subdirectory and NOT *.com/directory
3) I've read that doing this will require additional rules inside of the .HTACCESS file to make sure everything is secure; please add whatever it takes to secure the site and its .HTACCESS
IMPORTANT: I 301 all variants of my domain to the https:// version (without the www.) so please keep that in mind! For example; [login to view URL], [login to view URL] AND [login to view URL] are all 301'd to [login to view URL] <---- VERY important.
*I will not release funds until proven to work; I am yet to find a solution that works so I hope you can accomplish this. Thank you!
Hello Sir, I can write the htaccess code which will remove all the trailing slash and the url will be seo friendly. I am expertise on it.
I can start the work now.
Regards,
Sam