Questions tagged [trailing-slash]

A slash sign at the end of a URL.

A slash sign at the end of a URL.

263 questions
0
votes
0 answers

How to remove the trailing slash in vue router

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…
0
votes
1 answer

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 on myapp are requested as "http://localhost:gatewayport/image.gif"…
0
votes
0 answers

Remove trailing slash from next js static site

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 ^([^/]+)/$…
0
votes
0 answers

If I try to delete wave slash from URL, /index answers 404 Not Found

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; …
0
votes
0 answers

.htaccess Rewrite to Force Trailing Slash at the end for the folders & viceverca for .html files

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…
Medi Yaar
  • 11
  • 1
0
votes
0 answers

Use .htaccess to allow subfolders both with and without trailing slash

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…
joed
  • 1
0
votes
0 answers

How to append trailing slash in some dynamic urls in nextjs?

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…
0
votes
0 answers

Redirect with trailing slash in netlify

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…
0
votes
0 answers

Trailing Slash / Canonical URL Issue

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…
0
votes
0 answers

How do I remove a trailing slash from routes in Nuxt v2.15 even after a hard refresh?

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…
Nicholas Gati
  • 101
  • 1
  • 2
  • 13
0
votes
0 answers

I have the same version of firefox on two laptops but they return different pages. Is this a local or remote issue or dns.?

Im a bit of a hobbyist but this bug has got me stumped. I have'nt a clue which of the tags is the most likely culprit but I suspect caching. dell asus
0
votes
2 answers

How do I remove a trailing slash?

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…
0
votes
1 answer

apache htaccess - trailing slash and single entry point

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 ^(.*)$…
0
votes
1 answer

Remove '.php' file extension but still validate paramaters after trailing slash?

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.…
0
votes
0 answers

Gitlab - fatal: unable to access - Could not resolve host --> due missing slash

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…
Radek
  • 3
  • 4