Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Removing End Slashes From URLs

Featured Replies

I wanna remove the end slashes like..

 

www.trevorsiu.com/email

 

www.trevorsiu.com/email/

 

 

I literally have this in my .htaccess file:

 

 

RewriteRule ^(.*)\/(\?.*)?$ $1$2 [R=301,L]

 

 

Have I put the code wrong or something?

Edited by Sneijder

  • Author

Just tried it no avail.. it should be instant right?

  • Author

Nah nothing happens.. I find it strange that every guide online does nothing.. I've tried every example online.. no avail.

  • Author

It's definitely linux (think I remember when buying the hosting) and I have a .htaccess file etc.. because I can adjust the cache control in the panel etc..

 

If that's the case then mod rewrite has to enabled though?

 

 

How can it have a .htaccess file if I can't put anything I want it in?

  • Author

Ok.. I think I understand.. it's in the root of the root ATM because I have two domains etc.

 

(Edit)

 

Nah still doesn't work..

 

This is what's in the .htaccess file by default..

 

# Begin cache control #
ExpiresActive on
ExpiresActive off
<FilesMatch ".*">
Header unset Cache-Control
Header unset Expires
Header unset Last-Modified
FileETag None
Header unset Pragma
</FilesMatch>
# End cache control #
I put in the examples in below but never work.
Also I can't PM any of you to give you my username/password as a suggestion to do it for me etc..
Would any of you do it for for me if I give you the information?

Edited by Sneijder

Are you using a CMS or platform like that? Often they have a setting within admin - permalinks or something like that.

  • Author

No but it could be something similar..

 

In the panel of options etc..

 

It's just a standard webspace from www.domain.com

 

 

Any ideas? I'm willing to give anyone my username and password to help me out.

 

 

Kmoan

  • Author

Ok.. figured out it's probably because it's a shared hosting and not dedicated.. it won't allow it.

 

I was thinking of getting a dedicated server for another project I was thinking about.. already bought the domain for it etc.

Ok.. figured out it's probably because it's a shared hosting and not dedicated.. it won't allow it.

 

I was thinking of getting a dedicated server for another project I was thinking about.. already bought the domain for it etc.

lol not likely

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.