I have a problem with trailing slash at the end of my routes! I'm using headless CMS and My vue-router version is 3.6.5.
By the way I used:
trailingSlash: false
in my router option, In addition I've used
strict: false
in my router options too!
But…
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 on myapp are requested as "http://localhost:gatewayport/image.gif"…
I've hosted my next js static site on apache server. I can't manage to remove trailing slash from my urls. I've also added trailingSlash: false to nextConfig.js. Here's my current .htaccess file.
RewriteEngine On
RewriteRule ^([^/]+)/$…
I'm working on a docker Nginx server on local, this is my conf.d/default.conf configuration:
server {
listen 80;
listen [::]:80;
server_name localhost;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
…
I have the following code in my .htaccess file:
redirect 301 /file-a /folder1/file-a.html
RewriteCond %{REQUEST_URI} /+[^\.]+$
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
RewriteRule ^(.+?\.html)/ /$1 [R=301,L]mediyaar
RewriteCond…
I am about to move my html files from the root folder to a couple of subfolders.
The default setting my host is using is to show the trailing slash for the subfolders and no slash for the html files. If the browser requests a subfolder without…
I have some dynamic urls in nextjs project. Our requirement is to add trailing slash in some urls. How can we do this?
Actually, we are migrating django website in nextjs. In django, we have mixed urls so we can't change the trailing slash as it…
i've have a gatsby site deployed on netlify. I'm trying to make a 200 redirect to a external landing page (hosted on netlify aswell) but its not seem to work out:
/abm https://some-domain.com.br/abm/:splat 301
If i make a 200 redirect, this works…
This has been bothering me for a while... I’ve noticed a strange thing occurring on our website..
When I type in a subpage URL without an ending “trailing slash”, it does not redirect or force the “trailing slash”.
I have added a “force trailing…
I am using Nuxt.js v2.15 and I am noticing some strange issues regarding the routes. It seems that only certain routes have a trailing slash while others do not. I have even renamed some of the files and the slash went away, but once I renamed the…
I just want to remove a trailing slash from a directory. For example I want /p/page/ to show up as /p/page. It just looks better, doesn't it?
However I've tried many different kinds of mod_rewrites but none have worked or something happened.
I just…
I need to have one entry point for my application - index.php.
Before, i used to have such line of code:
RewriteRule ^(.*)$ /index.php [L]
Now, i need to force trailing slashes. I found out, that I can use such line:
RewriteRule ^(.*)$…
I've been searching for how to do this, and I haven't been able to get anything to work yet. I want to remove the '.php' file extension from all files that have it while also adding a trailing slash and validating all the parameters following it.…
I have install new Gitlab instalation on my Ubuntu server with Apache2 websrver. I created here (in web GUI) new repository like "testik.git" and I get http path:
http://git.domain.tld/testovic/testik.git
But, when I put this in git command on my…