Uniform Resource Locators are a generic scheme for specifying the location of resources. They are most commonly used for identifying locations on the Internet (such as webpages and email addresses) but can be used to reference almost anything.
Questions tagged [url]
519 questions
2
votes
1 answer
nginx: How to write regex to split URL into host and "everything else"?
I want to map
https://www.example.com/Something/SomethingElse/
to
https://www.example.com/index.php?/Something/SomethingElse/
So far I understood that I need the location directive in nginx and use the try_files inside, something like…

Александр Кулагин
- 23
- 3
2
votes
1 answer
403 in nginx when accessing a directory
I made a very simple server to test how a URL with folder behaves in nginx. Nginx is running in docker (nginx:latest image). Nginx runs user nginx (default set in /etc/nginx/nginx.conf).
server {
server_name example.com;
location…

PhilHarmonie
- 143
- 2
- 7
2
votes
3 answers
Regex for.. URL in a URL?
I have the following line in my .htaccess file, but it keeps redirecting me to a 404 error.
RewriteRule ^path1/([a-zA-Z0-9_-]+)/(.+)(/?)$ /file.php?variable1=$1&variable2=$2 [nc]
An example link would…

Kris Sauquillo
- 227
- 3
- 7
2
votes
1 answer
used colons for url htaccess http://localhost/1:1
I have a problem with the colons used in url
this my url
http://localhost/1:1
this my htaccess
RewriteEngine On
RewriteRule ^/(.*):(.*) index.php/$1:$2
this error show Forbidden You don't have permission to access /1:1 on this server.
# Virtual…

amir shariflou
- 23
- 3
2
votes
1 answer
When changed to WWW, all URLs showing index.php?page= how to remove index.php?page=?
I recently managed to direct all URLs from non-www to www as I had an SEO error regarding duplicate websites.
Once I have applied www rules then all my URLs start showing index.php?page= which doesn't look pretty.
Here are my current .htaccess…

Siham Lahmine
- 21
- 1
2
votes
1 answer
Removing the /folder/ from Wordpress using mod rewrite?
I'm working on a blog installed in its own sub folder so the URL for an article looks like this:
I need it to just look like this:
http://www.sampleurl.com/article
I'm not able to install it on the root directory so would a mod rewrite be able to…
Nick
2
votes
1 answer
Browser Downloading ASP App Instead of Displaying
Windows Server 2012 R2 / IIS 8.5
In IIS > Sites > Default Website I have an (ASP) application, when I visit the localhost URL a file is downloaded instead of the page being displayed.
The files are located at C:\inetpub\wwwroot\rooms and within this…

TheOrdinaryGeek
- 429
- 1
- 4
- 13
2
votes
2 answers
Server not recognizing %2b as valid image path
Running IIS 7
I'm running on a shared hosting account and I have a file on my server named +.jpg but when I try to navigate to it via the URL
http://example.com/images/%2b.jpg
The server doesn't respond properly and my browser returns "Webpage…

Omar
- 195
- 3
- 14
1
vote
2 answers
How to Nginx rewrite to get clean url of page numbers
Recently we have moved to Nginx from Apache,
Under apache it used to be very easy just put some stuff on .htaccess and done.
RewriteEngine on
RewriteBase /
# only rewrite if the requested file doesn't exist
RewriteCond %{REQUEST_FILENAME} !-s
#…

HelenSaepp
- 11
- 1
- 4
1
vote
1 answer
How to rewrite two URL's to the same endpoint via nginx?
I have two HTTP endpoint as follow
http://me11.example.local/api/foo
http://me11.example.local/api/boo
I want to redirect them to two different endpoints. In my config file it works for only one URL. how do I configure this for both endpoints?
my…

celcin
- 111
- 3
1
vote
2 answers
How do I disable hot linking and direct linking to files on my site?
Ok, I've beat my head against the wall for a few hours now and this just isn't working. Below are the contents of my .htaccess file. What I'm trying to do is block access to a set of pdf and mp3 files on my site unless the user click through to…

Mike Taber
- 149
- 1
- 7
1
vote
0 answers
apache redirectmatch capture groups not injecting to destination properly
I'm trying to redirect requests to my old git server (with my old username) to the new server (with my new username).
I'm trying to set up the following conditions:
If url is of the form http(s)://git.glmdev.tech/glmdev/any/url/here, redirect it to…

garrettmills
- 111
- 2
1
vote
1 answer
Nginx remove duplicate parameter in URL
I have a site which has an issue causing an annoying URL issue. On the page numbers found on a page, if you follow one it will visit ?page=2, this is fine.
If you then follow any subsequent links, rather than replacing the ?page=2, it will append a…

Hatclock
- 13
- 5
1
vote
1 answer
How to download file from url and store it in aws s3 bucket?
As stated, I'm trying to download this dataset of zip folders containing images: https://data.broadinstitute.org/bbbc/BBBC006/ and store them in an s3 bucket so I can later unzip them in the bucket, reorganize them, and pull them in smaller chunks…

Yufa
- 11
- 2
1
vote
1 answer
Varnish - usage of non latin characters of an URL in VCL
I have a client, which needs Varnish to be installed on his server. He is russian speaking and has an online shop with the following example URL, which needs to be excluded from cache (корзина is the cart page).
www.example.com/корзина/
So, is…

manifestor
- 6,079
- 7
- 27
- 39