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
1 answer

.htaccess rewrite rule for trailing slash after .com for backlinks

Backlinks, so links from other pages to my wordpress page, are missing a slash after the .com part. So https://mypage.com/subpage results in https://mypage.comsubpage This happened after I've changed the domain of a page from .de to .com Everything…
Xandru
  • 13
  • 10
0
votes
1 answer

Homepage with "/" at the end

Let's say I have a site with URL: example.com Does Google is treating "example.com" and "example.com/" pages as separate - So google thinks that one of them are duplicate? If so, is it possible to configure 301 redirects from “example.com” to…
Igosyee
  • 3
  • 2
0
votes
2 answers

Redirect all URLs with trailing slash except one

My Wordpress environment is running on IIS/Azure. I have a web.config file that I need help with. I am already successfully permanently redirecting traffic from all URLs with a trailing slash to the same URL without that slash. Works great,…
DJ Monzyk
  • 48
  • 7
0
votes
0 answers

Laravel lighttpd home 404 issue without trailing slash

I have build and application using Laravel. On localhost everything works fine. My home page route is Route::get('/', 'HomeController@index'); On locahost when I load https://localhost/app/public it redirects autmatically to…
Jnanaranjan
  • 1,304
  • 15
  • 31
0
votes
1 answer

SQL - remove trailing "/" in url with querystring

I have table with 2 columns where in one of them an url is stored. Now I would need to update the table to remove all trailing slashes from the urls, including urls that have a query string. Examples: /page/sub/1/ => …
RubenHerman
  • 1,674
  • 6
  • 23
  • 42
0
votes
0 answers

How can we determine if user has navigated to the default page directly?

We know that we can find our scripts and parametres by using php's $_SERVER[REQUEST_URI]. My problem with this is that querying the default script (page) with $_SERVER[REQUEST_URI] will always return the full script. Both…
Parapluie
  • 714
  • 1
  • 7
  • 22
0
votes
1 answer

Issue with trailing slashes vs non-trailing causing duplicate pages

I'll try my best to describe my issue here, please do ask for further info if I'm unclear or if it is required for a solution. I've just looked at my Wordpress site in Screaming Frog and I can see that some of my older pages (about 6 months or…
Fr1nk
  • 35
  • 1
  • 6
0
votes
1 answer

In Wordpress, How to get the canonical URL which should be same as main URL which we can see in browser toolbar?

I'm using wordpress platform for my website. And I'm using custom-permalink plugin for url customization.Now,how can I get that customized url as canonical url without trailing slash issue? Sample links are mentioned…
Pavan Vanam
  • 15
  • 1
  • 8
0
votes
1 answer

Trailing slash at end of URL wordpress / Blank Page

I've checked an issue on my wordpress. When browsing the domain page root https://domain1.com if adding a trailing slash at the end, like this https://domain1.com/ it gives a blank page. If removing the trailing slash, it opens fine. Any fix for…
GF1
  • 1
  • 2
0
votes
1 answer

ASP.NET Core MVC Web App does not append slash before Id

I am watching some tutorials to learn ASP.NET Core.I'm creating a MVC Web App.In website i have edit option for products.When i click edit button it goes to this url ; "https://localhost:5001/Admin/Products/Edit1" and it gives me error.Instead it…
MePengusta
  • 763
  • 1
  • 8
  • 18
0
votes
1 answer

Remove trailing / from list of links

I have a list of URLs, and I am trying to remove the trailing '/' from all URLs in the list. I have tried all of these variations with no error message, but no removal of the /: for link in url_list: if link.endswith('/'): …
coult
  • 117
  • 1
  • 2
  • 6
0
votes
1 answer

mysql replace add trailing slash to url

Im struggling with this problem for 3 days since i dont know any coding or regex of etc i have a wp streaming site with iframe content, the iframe source already in https now i want to migrate my streaming site to https but when i try to do that,…
0
votes
0 answers

htaccess force trailing slash with further conditions

I have an existing htaccess-file that redirects to a subfolder. It is necessary to have an trailing slash. I have add a rule that redirects to an url with a trailing slash, but since then the other rules are never met. RewriteEngine…
N.Poj
  • 37
  • 5
0
votes
1 answer

Trailing slash not added with .htaccess

I have the following .htaccess setup: RewriteEngine On RewriteBase / DirectoryIndex index.php RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$…
Cosmin
  • 864
  • 3
  • 16
  • 34
0
votes
1 answer

Htaccess redirect fails for URLs without trailing slash

I am struggling with htaccess redirects from both: /folder/subfolder/any-value/ and /folder/subfolder/any-value to /another-folder/any-value/ The code below works for /folder/subfolder/any-value/ to /another-folder/any-value/ But…
Edmund
  • 65
  • 2
  • 10