slash Questions

8

I am using the following htaccess rul to remove double or more slashes from web urls: #remove double/more slashes in url RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ RewriteRule . %1/%2 [R=301,L] Thi...
Wariness asked 13/6, 2013 at 6:34

1

In my project, during dev everything works great but my target app seems to not parse imports that start with "/" properly ( I am developing for a local app, not for a website / webapp). ...
Corpus asked 1/5, 2023 at 13:11

7

In ASP.Net it is posible to get same content from almost equal pages by URLs like localhost:9000/Index.aspx and localhost:9000//Index.aspx or even localhost:9000///Index.aspx But it isn't looks g...
Diderot asked 27/5, 2015 at 13:29

11

Solved

I want to remove the trailing slash from a string in Java. I want to check if the string ends with a url, and if it does, i want to remove it. Here is what I have: String s = "http://almaden.ib...
Carlyle asked 25/3, 2011 at 19:24

12

Solved

I am already trying for over an hour and cant figure out the right way to do it, although it is probably pretty easy: I have something like this : foo/bar/test.html I would like to use jQuery to ...
Madalene asked 4/12, 2011 at 15:59

2

I'm using django admin on my website. When I enter url without slash after admin (http://example.com/admin) I receive 404 error. I thought that django automatically added slash on the end of url. O...
Cynthy asked 14/12, 2010 at 10:19

9

Solved

So I can't seem to figure this out... I have a string say, "a\\nb" and I want this to become "a\nb". I've tried all the following and none seem to work; >>> a 'a\\nb' >>> a...
Shack asked 3/3, 2011 at 21:34

11

Solved

I try to use firebase db, I found very important restrictions, which are not described in firebase help or FAQ. First problem is that symbol: dot '.' prohibited in keys, i.e. firebase reject (wit...
Eustace asked 2/10, 2013 at 8:27

8

Solved

I know that this is not something that should ever be done, but is there a way to use the slash character that normally separates directories within a filename in Linux?
Redwood asked 23/3, 2012 at 22:28

3

How should I grep for a string containing a forward slash like ./.?
Driskell asked 27/6, 2012 at 21:11

4

Solved

I'm trying to get the following effect (using this local file http://localhost/[company_name]/[project_name]/.htaccess): http://localhost/[company_name]/[project_name]/page-1 (adds slash) http://l...
Hustings asked 6/8, 2012 at 13:54

1

I'm currently building an application with React and a Flask API and I got some CORS errors I don't understand : I've got an endpoint like this : @app.route('/home/', methods=['GET']) def home(): ...
Pretor asked 2/6, 2021 at 17:47

5

Solved

I'm trying to convert all backslashes () to forward slashes (/) in a variable which contains a file name and location. I've read about this and seen: %variable:str1=str2% and set "var=%var:\=/%...
Uncanny asked 8/5, 2014 at 12:58

1

Solved

How can I run bash script on git bash with slash '/' on Windows. Here is my script file. I can run well on Ubuntu/Linux. #!/bin/sh KONG_ADMIN_HOST=localhost KONG_ADMIN_PORT=8001 registerService...
Onomastic asked 20/5, 2020 at 8:0

2

Solved

The following is my directory structure Root/ index.php contact.php projects.php /index.php /project1.php /project2.php I have rewrites in place to remove the .php extension from all file ...
Floweret asked 6/5, 2013 at 21:40

6

Solved

I have a string like the following: /cvmfs/atlas.cern.ch/repo/sw/ASG/AnalysisTop/2.0.24/RootCore How should I extract the "2.0.24" from this string? I'm not sure how to split the string using th...
Placida asked 5/2, 2015 at 15:52

4

Solved

I have tried to print it but it just by passes because it's an escaped character. e.g output should be as follows. \correct
Unmentionable asked 11/5, 2015 at 14:51

5

Let's suppose I have this variable: DATE="04\Jun\2014:15:54:26" Therein I need to replace \ with \/ in order to get the string: "04\/Jun\/2014:15:54:26" I tried tr as follows:...
Quillan asked 6/6, 2014 at 8:45

1

Solved

I'm learning Gradle (version 4.10 now) and i am confused with setting path using separators ':' and '/'. In which situations it's propper to use this types? I'm not sure but it looks like colons ca...
Foetus asked 13/9, 2018 at 9:39

4

Solved

Here are my rewrite rules: ########### # Rewrite # ########### # Settings RewriteEngine On RewriteBase / # Cache Busting RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Rew...
Kampala asked 10/12, 2011 at 21:27

1

Solved

I have an application which correctly escapes slashes ("/) in file names to avoid path traversal attacks. The secret file has this path: /tmp/secret.txt I want to access this file by uploading a ...
Statampere asked 20/4, 2018 at 14:22

4

Solved

How to remove all backslash in a JavaScript string ? var str = "one thing\\\'s for certain: power blackouts and surges can damage your equipment."; I want output like one thing's for certain: ...
Chiromancy asked 23/4, 2013 at 13:59

1

I have some problem with my spider. I use splash with scrapy to get link to "Next page" which is generate by JavaScript. After downloading the information from the first page, I want to download in...
Cipher asked 11/2, 2016 at 13:55

2

Solved

I'm working on wpf c# application and I need to detect when user press "/" but I'm having trouble with finding " / " e.Key, I saw there is Key.OemBackslash and stuffs like that, but I can't find ri...
Neglect asked 5/2, 2017 at 23:10

7

Solved

I was wondering about the difference between \ and / in file paths. I have noticed that sometimes a path contains /and sometimes it is with \. It would be great if anyone can explain when to use \...
Breathtaking asked 18/7, 2016 at 4:22

© 2022 - 2025 — McMap. All rights reserved.