Apache Rewrites that Remove Trailing Slashes on URLs
$30-250 USD
已取消
已发布超过 12 年前
$30-250 USD
货到付款
I have a static website with flat HTML files. The files and folders are organized like this:
[login to view URL]
[login to view URL]
[login to view URL]
name1 (folder)
[login to view URL]
[login to view URL]
[login to view URL]
name5 (folder)
[login to view URL]
[login to view URL]
I need the URL to the [login to view URL] page to appear like this: [login to view URL]
I need the URL to the [login to view URL] page to appear like this: [login to view URL]
Likewise the URL to [login to view URL] should appear like this: [login to view URL]
And the URL to the [login to view URL] page should look like this: [login to view URL]
NOTICE THERE IS NO TRAILING SLASH AT THE END OF THE URL. I am using shared hosting where Apache automatically adds a trailing slash at the end of a directory, and I don't have the ability to change that.
I need an .htaccess file that causes the pages to be redirected to the desired URLs for all .html files, as shown above. I also need non-www URLs to redirect to URLs with www.
If you bid on this project, please an example of your .htaccess work. By that, I mean list URLs to a website that redirect to new URLs.