Jump to content

Trailing Slash Problem !!!


ahzulfi

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]

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.