Questions tagged [trailing-slash]

A slash sign at the end of a URL.

A slash sign at the end of a URL.

263 questions
1
vote
2 answers

Pretty-Faces redirect loop

hi i'm using pretty faces 3.3.3 in tomcat 7 and this config
wutzebaer
  • 14,365
  • 19
  • 99
  • 170
1
vote
1 answer

trailing slash htaccess for protect admin directory

I called domain.net/about-us coming domain.net/about-us/ ( add trailin slash ) correct page ! I called domain.net/admin or domain.net/admin/ , the error is 404 When I added this line comments #RewriteRule .*[^/]$ $0/ [L,R=301] coming up and asking…
1
vote
2 answers

removing trailing slash and non-www to www - using .htaccess

I'm facing an issue with .htacess when combining 2 mod_rewrite at the same time: remove trailing slash redirect non-www to www Here is my .htaccess file Options +FollowSymLinks RewriteEngine On RewriteBase / # Redirect non-www to www RewriteCond…
HoanNguyen
  • 55
  • 1
  • 4
1
vote
1 answer

How to set apache to rewrite anything after a file extention to the filename itself?

How can I set in httpd.conf so that any request to any filename.php/xyz should be redirected to filename.php or at least send an 404 Error. Thank you
Kaiser
  • 43
  • 1
  • 3
1
vote
3 answers

Trailing Slash tool in CherryPy 3.2 not adding a trailing slash

I cannot get the trailing_slash tool to work. I've played around with the options for the trailing_slash tool and nothing seems to have any effect. I am using CherryPy 3.2.2 and Routes 1.13. I would like to have a trailing slash added. There is no…
Daniel Devine
  • 283
  • 1
  • 2
  • 13
0
votes
1 answer

Removing Trailing Slash with .htaccess

I am trying yo remove the trail slash from an url with this pattern http://localhost/~francesco/mycms/about/ to make it http://localhost/~francesco/mycms/about I have tried lots of rules but no one is working for me. My rewrite rule is this by…
Francesco Zaffaroni
  • 482
  • 1
  • 3
  • 12
0
votes
3 answers

adding trailing slash to the url

I am working on drupal 7 site which needs to have a trailing slash at the end of urls for the taxonomy tags pages but not for the node pages which has the extention '.htm' . I have tried this by editing .htaccess file of drupal , I added following…
saket
  • 114
  • 1
  • 2
  • 7
0
votes
1 answer

How to configure .htaccess file for rewrite rules to get rid of extensions, trailing slashes, www?

This is what I want - When somebody enters site.com/page.php or site.com/page or site.com/page/ , all should work the same, and the url displayed in the address bar should be site.com/page [ I don't like extensions and trailing slashes ] I also want…
0
votes
1 answer

Redirect non-trailing slash to trailing slash on homepage URL only

I have a two-part issue. I am trying to implement a redirect only for the homepage URL to render with a trailing slash. Example: redirect www.domain.com to www.domain.com/ BUT allow all other URLs to render without a trailing slash. End…
0
votes
1 answer

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 slash at the end of the url, it can be entered in…
0
votes
1 answer

add trailing slash from URL of apache traffic server

How should I add o a trailing slash from the end of a URL in apache traffic server? all syntax are changed in apache traffic server. this is a rotin config for add slash in normal apache your textRewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f…
0
votes
1 answer

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/. Content of my .htaccess file: DirectoryIndex…
Toni
  • 55
  • 5
0
votes
0 answers

Getting error on putting a trailing slash even after trailingSlash: false in Next.js

When I put a trailing slash like www.example.com/test/ I get this error - Not Found The requested URL was not found on this server. Also I have a page with more subpages, so when I reload the page the trailing slash gets added automatically and this…
0
votes
1 answer

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.au/abc (where abc is a non-existing directory), it…
SunnyOz
  • 543
  • 2
  • 10
  • 25
0
votes
1 answer

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 the region you are in or the region you…