260 questions
1 vote
0 answers
83 views
Is there a better way to remove trailing slashes in Caddy 2 (FrankenPHP) config?
The problem: I need to remove trailing slashes from an URLs, but preserve URL query if it exists. Examples: /support/ => /support /support/?id=123 => /support?id=123 My current working config ...
0 votes
1 answer
110 views
Nuxt app front end on Azure app service server issue with trailing slash. When refreshing or redirecting, adds slash and routes to old version of page
So we have this strange issue on our Nuxt 2 front end which is running on a server in Azure app service. The back end is Java spring also running on Azure app service. So what happens is that anytime ...
2 votes
0 answers
240 views
cmake_path’s PARENT_PATH acts "strangely" when input path has trailing slash
cmake_path() can resolve the parent directory of an inputted directory by using the PARENT_PATH command. However, it yielded surprizing results (to me at least) in the case the inputted path ends with ...
0 votes
1 answer
40 views
Nginx trailing slash in html forms
I have the nginx config down below. I added the line "rewrite ^([^.]*[^/])$ $1/ permanent;" to make sure that when my website pages are visited when they have no trailing slash, they still ...
3 votes
1 answer
3k views
Using of trailing slash in void element
Since I use prettier extension to write HTML in VS code it adds trailing slashes in void elements when I format it. Then I put it into html validator to check for errors and it stated info like this &...
3 votes
1 answer
869 views
Nuxt 3 - automatic redirect when a slash is missing in the url
In our NUXT 3 application, there is a redirect for some reason when there is no slash at the end of the url. For example, when entering the address https://www.example.com/pricing, we get an automatic ...
0 votes
0 answers
135 views
How to resolve redirection issue with "/" URL in wordpress website
We are facing a page with a Redirection issue with the "/" URL. Our website structure is "https://www.example.com/tableau-consulting-services.html" But some all our landing page ...
0 votes
1 answer
53 views
add trailing slash traffic server
How should I add o a trailing slash at the end of a URL in apache traffic server? I checked that in normal Apache using rewrite and regex with the following configuration, if the user does not add a ...
0 votes
1 answer
371 views
htaccess - Add trailing slash at the end of URL
Currently, file extension .php is removed correctly from my URL. But the URLs are available without trailing slash under www.example.com/thema and with trailing slash under www.example.com/thema/. ...
14 votes
2 answers
20k views
Spring Boot 3 Controller Handling POST Requests with Trailing Slash Issue
I am facing an issue with my Spring Boot application where I have a single controller that handles POST requests only. I have set the context path in my application.yml as server.servlet.context-path: ...
0 votes
1 answer
321 views
Adding a trailing slash to a non-existing directory displays the 404 page without its css file
(I was having trouble coming up with a good question description, sorry!) I have a 404.php page setup, and it is also defined in my .htaccess file. THE PROBLEM: If you type in https://www.mentat.com....
0 votes
1 answer
20 views
Codeigniter 3 Multi-region website with traling slash removal from specific URLs
I am trying to remove trailing-slash from one of my website and it works but want to keep trailing-slash on a few URLs and want to remove from all remaining. The website content is accessible based on ...
2 votes
1 answer
404 views
Can't remove trailing slash from WordPress base URL in subdirectory
I have a WordPress in the directory www.example.com/blog/ and it works fine. All the URLs ended in '/' (www.example.com/blog/article/), but I have corrected it from Settings/Permalinks (www.example....
0 votes
1 answer
196 views
Spring cloud gateway doesn't add context to styles/images when original context does not have trailing slash
Consider a request "http://localhost:gatewayport/myapp" where I want to redirect the request to "http://localhost:appport/" This works ok except that the images, styles hosted ...
2 votes
1 answer
1k views
404 error after adding `trailingSlash: false` in a docusaurus website
I have a website made by docusaurus 2.0.0-beta.18. I realize that, in production, when I click on items in the sidebar, it first goes to https://www.mywebsite.com/docs/a-page. If I reload the page, ...