python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
In Apache how to do an external redirect to the slashless version of a URL with a subfolder .htaccess file
On Apache 2.4 I have an .htaccess (in a subfolder) which rewrites slashless requests inside that folder to appropriate index files:
DirectorySlash Off
RewriteEngine On
RewriteCond %{REQUEST_FILENAME}...
halloleo
Votes: 0
Answers: 1
Matching a specific string between foward slash or # using regex
I'm trying to make this regex:
([?=section\/en\/]*)([^\/#]*)
For these examples:
https://www.test.com/en/string-to-get#cid=4949
https://www.test.com/en/section/string-to-get/page&2#cid=4949
https...

Juan Manuel
Votes: 0
Answers: 1
.htaccess force trailing slash
I've been trying to solve this for some time, and have tried a few suggestions which I found, but none of them seem to work
I would like to try and force a slash at the end of the URL for any page vis...

user17897704
Votes: 0
Answers: 1
Forcing to add trailing slash causing error
I am forcing my website to add trailing slash, but it is showing error - Too many Redirects.
I have used these two methods to add traling slash and both gave error.
function add_slash( $string, $type ...
Mohammad Umar
Votes: 0
Answers: 1