All Questions
63
questions
1
vote
1
answer
69
views
How to remove amp word from center of url
I removed Amp Module from our site and I need to remove amp word from center of all of urls.
Using Nginx Web server
for example :
mysite.com/shirt/nike?amp=1&product_list_dir=asc&...
0
votes
1
answer
528
views
DNS redirect to a static IP?
I want to implement a URL shortener using a DNS modification. Is this possible?
It would do things like convert a domain name to a static IP:
https://fubar/keyword -> https://192.168.0.200/keyword
...
2
votes
1
answer
3k
views
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 {
...
-1
votes
1
answer
171
views
How to direct a custom domain at a particular tweet [closed]
I have registered a new domain, let's call it particulartweet.com.
I would like users who enter that domain in their browser to land on a particular Twitter URL, like https://twitter.com/wgervais/...
2
votes
1
answer
764
views
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 ...
1
vote
1
answer
224
views
Nginx Redirect regex
I have this url:
https://example.com/admin/catalog/product/view/id/45533/?___store=en_us&sendAttributionID=email_automation_5ffa6c5967af4527508858fb&ContactID=...
0
votes
1
answer
1k
views
HAProxy URL redirection
I have a goal to redirect some URLs into one.
I mean this is the destination url: https://application.company.com
I want to redirect:
http://company.com
https://company.com
https://application.company....
1
vote
0
answers
172
views
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)://...
0
votes
1
answer
2k
views
IIS 7 URL Rewrite Only If No File Nor Subdirectory Nor Query String
(I posted this question on StackOverflow because searches for an answer showed related questions on StackOverflow, which got answers and many upvotes. But my question so far earned a downvote and an "...
0
votes
1
answer
88
views
Where should I implement my url redirect block?
I have hundreds of url redirects to implement and I am not quite certain where the best, most efficient place to implement the redirect block is:
on the Varnish server or on the Nginx server. The ...
1
vote
1
answer
5k
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
1
answer
71
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 ...
0
votes
1
answer
103
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;
...
1
vote
0
answers
2k
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
0
answers
97
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
1
answer
306
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
vote
1
answer
120
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
1
answer
9k
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 ...
2
votes
0
answers
1k
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 ...
0
votes
1
answer
3k
views
How to hide port number in address bar for jenkins
I have setup Jenkins to access on port 80 rather than 8080 using iptables on Ubuntu 16.04 by following the article on Jenkins documentation. It is working fine and I can access the Jenkins using url ...
1
vote
1
answer
1k
views
Setting up nginx redirect map: how to handle spaces
How can you handle spaces in the original url in a redirect map? The map I have set up seems to be working properly for other redirects.
However, for urls with spaces, I tried:
‘/banner ads.htm’ /...
-1
votes
1
answer
141
views
Simple, failsafe DNS setup for multiple domains aiming one site
I would like to setup DNS records to map multiple domains to one website in a failsafe and clean way. Here's the situation:
I have a couple of domains:
mydomain.com
mydomain.de
mydomain.net
My ...
-1
votes
1
answer
83
views
different servers on different ports: friendly url? [closed]
I have different servers for different applications running on different ports and I want users to use friendly url to browse the applications. e.g.
localhost:8080 run by tomcat -> I want users to ...
0
votes
1
answer
222
views
Google bot cannot read my web site
I am getting from time to time a message from Google bot that it cannot access my web site.
Over the last 24 hours, Googlebot encountered 1 errors while
attempting to retrieve DNS information ...
1
vote
2
answers
2k
views
NGINX URL with parameter rewrite to URL without parameter
I have an NGINX background on my server. I cannot figure out why my rules doesn't work.
How can I redirect or rewrite it so I could open URL with the same content, for example:
http://www.example....
2
votes
2
answers
2k
views
IIS URL Rewrite 404 Error
I am running a small intranet site off Windows 7 and IIS and I have a page page/LoadPage.aspx which is an ASPX container page for displaying a requested page, e.g. http://localhost/page/LoadPage.aspx?...
1
vote
0
answers
207
views
nginx: Redirection from http://*.example.com to https://example.com showing strange behaviour
I have an SSL certificate being only valid for example.com (not valid for subdomains) and therefore want to redirect both http://example.com and http://www.example.com to https://example.com using ...
9
votes
1
answer
24k
views
HTTP URL Redirection Command Line Trace [closed]
I have to produce definitive evidence that can be documented on a piece of paper, proving that one URL redirects to another.
When you browse to the URL in question, the web server responds with an ...
1
vote
1
answer
1k
views
Nginx rewrite part of URL
i'm trying to make a redirects from URL's with option ID to URL's with option URL_key i've assigned.
I have two column table with ID i'd like to substitute and URL_key as substitute.
11337 bar
...
1
vote
1
answer
4k
views
Using IIS URL Rewrite to redirect from one sub domain to another
I'm trying to set up IIS to redirect traffic from https://sub.foo.com to https://www.foo.com, but NOT redirecting any traffic to https://sub.foo.com/bar. The regular HTTP redirect module doesn't allow ...
2
votes
1
answer
4k
views
NGINX - Remove index.php from the end of the URL
I can access my webpages with "www.dom.com/mypage" which will redirect to "www.dom.com/mypage/". "www.dom.com/mypage/index.php" is the main file but I want to remove this from the url so if you type ...
0
votes
1
answer
17k
views
URL redirect not working in IIS 7.5
I am facing problem redirecting my HTTPS web service from HTTP.
I have applied CA SSL certificate to my web service and using URL Rewrite, I have done the changes for redirection in IIS 7.5.
Here is ...
0
votes
3
answers
635
views
How to remove hypen (-) using nginx rewrite rule?
I am using this rewrite rule to redirect
example.com/a-b-c?id=learn-more ----> http://example.com/abc?id=learnmore
rewrite ^/a-b-c?id=learn-More http://example.com/abc?id=learnMore permanent
But ...
-1
votes
1
answer
4k
views
Wireless router URL redirection [closed]
I'm trying to "filter" explicit URLs (+18/21) from network traffic and redirect to another website. I have physical access to router inside my home, computer and router local web-access, which let's ...
1
vote
2
answers
2k
views
How do I redirect to different backend server based on URL using Apache?
I'm a newbie to Apache, sorry if this is a documented solution somewhere. I have been scouring the web and can't seem to find this answer ...
I would like to redirect traffic based on the URL coming ...
1
vote
2
answers
2k
views
Redirect from Old Site to New Site on different folder
I want to redirect all request from a url host www.hostname1.com (including all subdirectores-www.hostname1.com/....) to a different url with a different host, www.newHost.com. I have already made the ...
2
votes
1
answer
2k
views
Apache2 Virtual Host redirect except on special path
Assume we have 2 domains.
www.my-domain.com
www.mydomain.com
As Standard, we have a redirection from .mydomain.com/ to .my-domain.com/ via
(mydomain.conf)
<Virtualhost *:80>
ServerName ...
0
votes
1
answer
5k
views
Ngnix Rewrite - If URL contains
I'm having a small issue - my error log is filling up with requests to a directory folder on my site (but with added data that shouldn't be there).
http://example.com/the-directory/undefined
http://...
0
votes
1
answer
34
views
Moving my project to a different location broke absolute links
Before my project was located in the root of domain.com. Most of hrefs are like this:
<a href="/user/test">test</a>
But since my project was moved to domain.com/catalog/, all of those ...
1
vote
1
answer
873
views
.htaccess URL rewrite to upper-case characters in domain
For example, I'd like to have foobar.com show FooBar.com
This almost works, but ends up forcing a redirect loop:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?foobar.com\.com
RewriteRule ^(.*)$ ...
2
votes
2
answers
44k
views
URL redirect using Windows DNS
I have a website say xyzuniversity.com/north.
I want to redirect college.com to be redirected to xyzuniversity.com/north using Windows DNS entries.
Is there a process to do this?
Also what are the ...
4
votes
3
answers
26k
views
How to redirect root to subdirectory while maintaining URL in the address bar
I have an nginx setup with folder structure like this:
- www
|- splash
|- blog
www is the root folder.
I would like to redirect users who access http://example.com to the splash folder.
But I ...
0
votes
1
answer
1k
views
Rewrite certain URL in Nginx such that another app will serve it
I have a config file for mydomain.com which is served with Drupal. Problem is this rewrite rule takes the control over any request:
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?q=$1 ...
0
votes
2
answers
127
views
subdomain.domain.com works, but still accessible via domain.com/site
I've got a site installed at, for argument's sake, /var/www/site, and have a subdomain set up so that it can be accessed via subdomain.domain.com.
How do I stop it also being accessed via domain.com/...
0
votes
1
answer
2k
views
Redirect 404 errors without rewriting the URL
Is it possible to have an erroneous URL remain in the address bar while redirecting the user to a URL within my domain? I want www.domain.com/forum to be the actual site being served in all 404 ...
2
votes
1
answer
9k
views
How to redirect an specific url with specific variables in iis
The idea is to add a rule to my iis (version 7) to redirect this
http://www.mydomain.com/folder/Default.aspx?&variable1=eeee&variable2=aaa
to:
http://www.mydomain.com/folder/Default....
0
votes
1
answer
144
views
Redirect a url to a new host
I have the following URL which displays a normal static website: www.example.com. This site is hoted on Amazon.
I want to make all urls starting with www.example.com/redirect to redirect to another ...
0
votes
1
answer
316
views
Domain url redirect with myDNS
I have a domain and want to redirect this domain to url (for example www.example.com). How I can do this with mydns (using mydnsconfig interface or mydns itself).
2
votes
1
answer
2k
views
htaccess: how to rewrite to clean urls and redirect old urls to the new clean ones? [duplicate]
With htaccess I'm trying to make my sites urls clean.
I use very basic urls like: www.mysite.com/pagename.php ("pagename" is variable).
I want www.mysite.com/pagename to display the content of /...
41
votes
3
answers
98k
views
Simple apache2 redirect from one domain to another
What I want to do is the following:
My domain xy.example.com no longer exists. Thus I want to do a simple redirect to the new domain abc.example.com. It should be a redirect, that also works when ...