Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [url]

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.

0
votes
0answers
6 views

Apache: Dynamic multiple URLs to point to the same content

I am in a situation where I need to have multiple different urls point to the same content/code. Basically there is a super admin that manages multiple projects. Each project has to have a different ...
0
votes
1answer
7 views

Redirect URL in IIS to different domain and remove portions of the URL

We currently have URLs like: https://tfs.mydomain.com/tfs/MyProjectCollection/Project/_workitems that I need redirected to: https://dev.azure.com/MyOrg/Project/_workitems Using the HTTP Redirect ...
0
votes
0answers
15 views

HAProxy not sending correct URL to LXD container

HAProxy not sending correct URL to LXD container I want to have the following behaviour: In one virtual machine I have three LXD containers: One with HAProxy, another with a LDAP server, and the ...
0
votes
2answers
56 views

Nginx location match multiple extensions unless path starts with specific word

How can I write a location block that matches any path ending in the following extensions: jpg|jpeg|gif|css|png|js|ico|json|xml|txt|html Unless the path starts with "/rails" (eg: /rails/randomstring/...
0
votes
0answers
55 views

URL Mask: Can I mask a url on a different server with a different domain?

A client has requested to mask their URL with our own so instead of websitetwo.com it would fall under websiteone.com/websitetwo. These are two totally different servers and I have searched for an ...
0
votes
1answer
43 views

NGINX URL Redirection

In nginx we have been trying to redirect a URL as follows: Client hits the url: https://new.domain.com/reg?account.name=ABC&accountID.number=1234&OrderNumber=11111111&Code=2222 and nginx ...
-1
votes
0answers
46 views

url masking using htaccess gives a 404

I have the following issue. I am setting up a company who's domain and email is hosted with a local hosting company i have used for years. usually no problems as the website content is usually hosted ...
-1
votes
1answer
79 views

strange character ? added at the end of URL

I have a very very strange thing only on some websites. I have restarted the server where many websites are hosted (for maintenance reasons) and after reboot, some websites only have a ? at the end of ...
1
vote
0answers
23 views

404 on script URL after switching server from Apache to NGINX

I have a woocommerce site that runs a script for accounts that has stopped working after moving from Apache to Nginx. example.com/zynk/index.php/wp_posts?select=ID,meta_value&where=post_type.... ...
0
votes
0answers
7 views

Apache Server Htaccess [duplicate]

How to redirect pages without extension to .html ? For example I want the following page : [https://volexlabmultimedia.com/multimedia-service-lucknow][1] To be redirected to: [https://...
1
vote
0answers
25 views

URL rewrite is not working as expected IIS7

I am trying to achieve the following rewrite URL in IIS 7: subdomain.domain.com/username should become subdomain.domain.com/?username When I try to match the pattern /([^/]+) and test it with /...
-1
votes
2answers
36 views

Is there URL filter like protocol in TCP/IP stack?

I find many type routers have their self-existent URL filter settings. Tenda: Nexxt: So, is there a URL filter protocol in TCP/IP stack? and if is, is there any software for controlling every ...
0
votes
1answer
38 views

nginx URL Redirect

Excerpt from conf file server { #HTTP SITE listen 80; server_name example.tv www.example.tv; #Redirect HTTP to HTTPS location / { return 301 https://example.tv$request_uri; ...
0
votes
2answers
630 views

nginx rewrite url without changing browser address

I want to change the url of a request but the browser address should not change. To achieve this I have tried the below configuration: location /my-website { proxy_pass http://tomcat/...
0
votes
2answers
49 views

htacess rule for dynamic url in GET method

I have a GET request as http://www.example.com/index.php?location=location&category=category&keyword=any+keyword I have converted this URL to http://www.example.com/location/category/any+...
0
votes
1answer
14k views

Redirect www.xxx.com URL to xxx.com on Heroku

I'm using pointDNS I have an alias: xxx.com to the xxx.herokudns.com. Now I have added a CNAME www.xxx.com and redirected it to xxx.herokudns.com (also tried xxx.com with the same result). What I ...
1
vote
0answers
513 views

IIS 10 URL Rewrite HTTP to HTTPS redirect on same port

I would like an easy redirect but doesn't work. Original: http://exwebsite.com:8084 to Redirect: https://exwebsite.com:8084 Can u help me? The simple <add input="{HTTPS}" pattern="off" /> and ......
2
votes
0answers
39 views

HTTPS redirect, exclude script parameters from URL [closed]

My goals: 1. http://example.com/page/index.php -> https://example.com/page/ 2. http://example.com/page/ -> https://example.com/page/ 3. http://www.example.com/page/ -> https://example.com/...
0
votes
1answer
35 views

nginx proxy_pass with flexable subpath possible?

currently I have this as my proxy_pass which works fine location = /sms/resetpass { proxy_pass http://xxx.xxx.xxx.xxx/api/resetpass; proxy_http_version 1.1; ...
0
votes
1answer
66 views

Partial UPPERCASE and lowercase cause URLs not going to the same place?

I work for an organization with a content management server that was newly switched to Apache. I don't know what it was running before, but I am unsure why the following is happening and how to fix it ...
0
votes
1answer
127 views

Nginx confusing $fastcgi_script_name with $fastcgi_path_info

Here is the relevant part of my Nginx configuration file: http { log_format fastcgi '$remote_addr - $remote_user [$time_local] "$request" ' '$status $...
0
votes
1answer
382 views

Nginx SSL-rewrite to localhost

I want to redirect localhost request to HTTPS. This is what my .conf looks like: server { listen 80; listen 443 ssl; ssl_certificate /etc/ssl/localhost.crt; ssl_certificate_key /etc/ssl/...
0
votes
1answer
205 views

active directory dns domain name and external website (same domain)

When our AD domain was originally created, it was named somedomain.com. The problem we've been having, is with the website for somedomain.com, being hosted elsewhere on the net. Computers on our ...
1
vote
1answer
110 views

Apache redirect - remove all queries

I am trying to remove all queries in URL: https://api.myserver.com/image.png?arg=0 should become https://api.myserver.com/image.png I used this: RewriteCond %{QUERY_STRING} ^arg=0$ ...
0
votes
2answers
43 views

Control IP Address to access URL on Linux

I have a J2EE application deployed on linux cloud over internet accessed through HTTP URL. Now, I want to restrict the IP addresses who can access it. Kindly suggest if this is achievable. Thanks in ...
1
vote
1answer
389 views

Is it possible to normalize “double-dots” URL using nginx?

According to RFC3986 URL like this http://example.com/catalog/category/goods/../brand/product.html converted by some UserAgent (curl would be nice example) to http://example.com/catalog/category/...
1
vote
1answer
347 views

HAProxy encode url for querystring

I have a system that needs to preserve the original referer over multiple redirects. To achieve this I'm trying to write the referer to the URL query string. I already got that working (somewhat). ...
0
votes
0answers
87 views

Virtual Hosting: Backend WebLogic Server IP Address is in the browser URL

I am configuring virtual hosting on Apache 2.4 web server, and the back end is weblogic8.1 server. The weblogic server (private IP: 192.168.103.101) has three applications running, each one is ...
-1
votes
1answer
129 views

accessing phpmyadmin and web pages on cloned server [closed]

I created a clone of my server and would like to use phpmyadmin to trim down the mySQL databases on the clone. Can't figure out how to access it. On my live server, the URL is: http://mydomain/db12/...
1
vote
1answer
20 views

URL rewriting and indexation by search engines

For a website, I want using URL rewriting to allow easy access to pages and better indexation. For instance, assume the page about Mozart is: www.site.ext/composers/index.php?cmd=composers&id=...
1
vote
2answers
70 views

Access server using URL locally without going through Internet

I have an SVN repo on my server and access it using dynamic IP service https://MyMachine.no-ip.com/svn/etc.. When I connect to it from anywhere I connect successfully and everything is fine. But when ...
1
vote
1answer
14 views

Apache adds “./” to file names with colons in them

I ran in to this today running httpd on Centos 7.3. We do a lot of raw getting of apache-generated HTML docs for file download. Apparently, if a file name has a colon, apache well prepend "./" to ...
0
votes
0answers
597 views

Haproxy route to port based on URL path

I'm fairly new using Haproxy and am launching this app that is bound to Port 85. I have set up what I think I need in the config file. When I try to access the app URL in the browser it seems to work ...
0
votes
1answer
523 views

nginx URL rewriting regex when URL contains a specific word but not other

Please consider the following URLs. https://products.example.com/family/child https://products.example.com/products/family/child https://products.example.com/family/children https://products.example....
-1
votes
1answer
23 views

Which URL is consired as Valid ,while checking for Broken Links

I have bunch of URLs and im trying to check if these URLs are Valid(Errors like 404 etc).In such a scenario what URLs are considered as Valid? Example Scenarios The server responds with some HTTP ...
0
votes
0answers
24 views

Apache alias a short extensionless symbol to a file

I would like to have a short url like: https://myDomain/essr to evaluate to: https://myDomain/dir1/dir2/myFile.html I've been trying to use alias in my apache config but I haven't been able to ...
0
votes
0answers
559 views

Proxy NGINX Traffic to different internal IP while keeping the URL

General Info: So I Setup a Proxmox VE to tinker around at home with Server Setups und possible Services I want to offer first of all Nextcloud for Friends and Family. From my ISP I have one static IP ...
31
votes
2answers
5k views

Why does this URL with excessive preceding dots resolve to an IP address?

http://.................1168951531 Which, when put into chrome, previews to the URL http://69.172.200.235/, which redirects (by external server response code 3XX) to www.test.com, but that is outside ...
0
votes
0answers
29 views

Add the original requested URL to the rewrite rule?

Working with our hosting provider, they've added an nginx rule to help us block access to files within a particular folder. Basically, if the user is logged into the WordPress site, it gives them ...
1
vote
0answers
530 views

nginx rewrite without url decoding

I use rewrite on my nginx server to allow URLs like https://www.example.com/en/product/apple.html to pass en, product and apple.html to a single PHP script like so: rewrite ^/([a-zA-Z0-9_\-]+)/([a-zA-...
0
votes
1answer
77 views

does forwarding a domain on godaddy also forward all links

I want to change to a new domain. I currently have example.com I want to forward to newexample.com If I forward on godaddy. Will it also forward links for example Will example.com/events Forward ...
-1
votes
3answers
223 views

Systematically add fragment to URLs

I have a mean-stack website with html5mode enabled. In index.html, I have <base href="/1/" />. And I have the following nginx setting such that www.myweb.com/home becomes automatically www.myweb....
1
vote
1answer
271 views

Accessing phpmyadmin in Nginx directly from IP address (without a subdomain)

In an Ubuntu 16.04 Nginx environment which has some sites working fine, I've installed phpmyadmin: cd /var/www/html wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.zip find ....
1
vote
1answer
29 views

How serve different content using apache and (maybe) mod_rewrite

There are some files (with unique names) in a directory structure like this: /var/www/domain1/unique_filename1 /var/www/domain2/unique_filename2 /var/www/domain3/unique_filename3 At the moment, all ...
0
votes
1answer
793 views

How to do redirect from url to html file without downloading it in nginx

I need to redirect url to html file located on the file system. This is that I have tried so far: location /this/some/url { alias /path/to/the/file.html } When I run this the redirect works but ...
1
vote
0answers
31 views

Random Sub Domains being generated

I'm having a strange issues where a coworker of mine received a google alert about 'Deeper Learning' content -- this normally directs her to any new happenings on her keyword'Deeper Learning' This ...
1
vote
0answers
625 views

Redirect to Docker container with Apache in a relative URL

I have a Docker container running on a Ubuntu server on the port 8080. I can access to the web container with localhost:8080 Now I want to access to this container from the outside with my public IP ...
1
vote
1answer
190 views

nginx upstream's wrong response

I'm having a problem with my upstream. There is a location block for the web application as below. I'm doing A-B test with this. location / { include backend.conf; } backend.conf proxy_buffering ...
0
votes
0answers
538 views

How to replace /wp-admin with other URL in Nginx?

I have a Wordpress on my website and I want to hide and secure access to the Dashboard. It works inside VDS with Nginx. I want a visitor to see 404 error page if he visits /wp-login.php or any /wp-...
1
vote
1answer
3k views

How check in nginx for query_string parameters?

How I can write a condition in the nginx config testing if a q parameter was entered in the URL? This doesn't work: if ($arg_q) { return 301 "/someurl"; } It catches URLs like /search?...