Jump to content

Recommended Posts

Hello,

i got a wierd trailing slash problem with my URLS

 

if i use http://myurl.com/somethin

it works however http://myurl.com/somethin/  will give me 404 error

 

i have tried everything but nothing worked please help me how i can redirect those URL having TRAILING Slash to without Trailing Slash

 

Thanks & Regards

ArslanHassan

 

Link to comment
https://forums.phpfreaks.com/topic/96042-trailing-slash-problem/
Share on other sites

you'll find people usally do it the other way around, redirect no trailing slash to a trailing slash, some web servers do that automaticly as well, so you might want to think about doing it's it that way

 

not sure if this would work or not, but you can give it a go

 

RewriteRule (.*)/$ $1 [L]

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.