All Questions
Tagged with redirect redirection
45
questions
1
vote
1
answer
30
views
Redirect removing sufixes after 3 URL segmentes in Nginx
This is the URL that I need to remove the last segment (?order=asc)
https://www.example.com/segment_1/segment_2/page/the_number_goes_here/?order?asc
This is the code I'm trying:
location ~ ^/([^/]+)/(...
0
votes
0
answers
83
views
Using Rank Math REgex for subfolder redirects to home
So short summary: im a SEO specialist working on a website that has over 1000 404 pages due to a translator app. The subfolders /de/ /fr/ /es/ /en/ and URL's within the subfolder need to be redirected ...
0
votes
1
answer
771
views
How to redirect all pages that contain a specific word using the .htaccess file
I have a bunch of indexed pages that start with the same word and they are all 404 so I want to redirect them all to the homepage of the site. The server is Apache, so I would like to use the ....
0
votes
2
answers
858
views
301 redirect url based off of a category in the url
Does anyone know how to redirect a url that contains a parent category of a product? Basically I want to redirect a ton of products to a simple landing page that I created, so instead of making ...
1
vote
0
answers
274
views
HAPROXY - redirect URL and keep the same URI
Im using haproxy to do redirections. Basically I have a URL ( https://google.com// ) and I want to keep the same URI and just redirect only the base url ( https://test.com//). For HAPROXY it has to be ...
0
votes
1
answer
1k
views
Masking link with a 302 redirect through nginx not working
I'm trying to mask an affiliate link, so I want to have a 302 redirect through nginx
I want to redirect all /go links to the respective affiliate link, so all link redirects would be like mydomain.com/...
0
votes
2
answers
264
views
NGNIX Redirect with two Parameter
So at the moment this is working for me:
if ($request_uri = "/web/news.php?id=69") {
rewrite ^ https://www.camper-center.ch/? last;
}
But now I also have URLs like /web/listing.php?...
0
votes
2
answers
584
views
Redirections, but only on a certain web browser
I have found some cheap SEO pages, whose only purpose is to promote some other sites by feeder links. On Chrome and Safari and Firefox, they show the SEO web page, but on Kiwi Web Browser on my ...
0
votes
0
answers
50
views
Mass redirection in Nginx to an external host(s)
I have around 500-1000 URLs to do redirects over. I'm aware how to do it when redirects belong to the same host -- via nginx maps.
But how to do it when some of them are local, but others are external?...
0
votes
2
answers
1k
views
Redirecting webhook with nginx
I am changing the domain name of my app from old.com to new.com
My app is connected to external APIs that send data through webhooks, and I would like to redirect the webhooks sent to the old url, so ...
1
vote
1
answer
819
views
How can I reset the max-age cache control of my page being redirected ( 302 )
A few hours ago I used the following code in my htaccess to redirect the homepage to a maintenance page:
Maintenance redirection
RewriteCond %{REQUEST_URI} !/maintenance/index.html$ [NC]
RewriteCond ...
0
votes
0
answers
1k
views
forward all traffic between two ports without iptables
I have read this:
Port forwarding on Linux without iptables?
I have a vps and I have ran lxc containers on it. I want to redirect all incoming traffic from one outside port to one port of a container ...
1
vote
0
answers
58
views
How to 301 redirect piece by piece?
I will move my blog website (monthly traffic of 250k) to a new domain name. I will use HTTP 301 redirections.
But I should not redirect all links at the same time because of some business reasons. I ...
2
votes
1
answer
1k
views
How to set index.html to redirect wget query to an other page/file?
If my server is at example.com, running
$ wget example.com
will only download the file index.html. How can I make wget either
download another file instead of index.html
download this file along ...
0
votes
2
answers
4k
views
Need help on NGINX full URL redirection rewrite rule
I am trying to redirect in a complete URL, including every strings on the url.
I want this
http://www.SITE-A.com/everything?complete=url&fully=redirected
redirects to
http://www.SITE-B.com/...
1
vote
1
answer
1k
views
HTTP Redirect of Cyrillic URLs: this example works without URLs being encoded. Why?
As per the https://www.rfc-editor.org/rfc/rfc5987, HTTP header fields should be returned using the ISO-8859-1 character encoding.
This applied also to the Location field used for the redirection.
...
2
votes
1
answer
135
views
Redirect to language specific domain - Apache 2.4
I'm using Apache 2.4 to host those domains:
domena.pl/
domena.pl/ru
domena.pl/en
I need to redirect domena.com to domena.pl/en. Here's my htacces file:
RewriteCond %{HTTP_HOST} ^(www\.)?domena\.ru
...
1
vote
1
answer
223
views
multiple redirects on lighhttpd
I have a request to redirect multiple individual URLs to new individual URLs. This is the situation:
**Old URL --> New URL**
old.domain.org/ --> ...
0
votes
1
answer
2k
views
NGINX conditional proxy pass
I hope some guru can give me some help outta here since I don't know anymore where to look or what to do.
I have a single petition from a client that is being a little tricky to me.
My scenario have ...
0
votes
1
answer
137
views
Redirect domain and all the subdomains to a certain sub domain
I am building a site for the alumni association of my school. I have bought a domain myschool.com from GoDaddy. In GoDaddy, I have customised DigitalOcean as name servers.
I would like to customise ...
3
votes
1
answer
6k
views
Nginx: Redirect URL to always include a locale prefix
I'm trying to achieve something with nginx and redirect rules which seems like it should be pretty straightforward, but I've run into a stumbling block.
Having had a look through many questions and ...
2
votes
3
answers
1k
views
Redirect subdomain to subdomain Apache2
Let's say I have a web server with IP address: 1.2.3.4.
I also have 2 subdomains:
sth.city.eu
inf.xyz.city.eu
I'm using apache 2 on Ubuntu Server. Here's my /etc/apache2/sites-enabled/site ...
1
vote
1
answer
76
views
Redirecting emails based on alias to different mail server/store
We are a pretty small startup which is involved with providing mail services as part of the portfolio. Up to now, all our C-level officer's emails have been going through our own mail server product ...
0
votes
0
answers
2k
views
Varnish redirect loop
I've tried with a lot of varnish configurations and always experience the same redirect loop, after varnish is running for a couple of hours some pages are displaying the message: The page isn't ...
0
votes
1
answer
442
views
Reverse a .htaccess redirection rule
Let me explain by example. Say, I have this redirection rule in my .htaccess file:
RedirectMatch 301 ^/([^/]+)/([^/]+)/$ http://www.example.com/$2
What it basically does is, redirect http://www....
-4
votes
3
answers
1k
views
.htaccess and PHP redirect hack on GoDaddy Website [duplicate]
Possible Duplicate:
My server's been hacked EMERGENCY
A friend is experiencing a random redirect to an RU domain for two of her websites, along with a malicious cookie attack, as per a Norton ...
4
votes
2
answers
17k
views
.htaccess - redirect non www to www and retain subdomains from redirecting [duplicate]
So, on my main domain 'domain.com' I created several subdomains from cPanel, like 'sub1.domain.com' and 'sub2.domain.com'. Their real location on server is in 'domain.com/sub1' and 'domain.com/sub2'.
...
0
votes
2
answers
2k
views
Redirect not found pages
In apache,
How I can redirected the pages not found to / ?
Not Found
The requested URL /dsadsa was not found on this server.
0
votes
1
answer
197
views
redirecting to the originating server
The following is working as expected. The only problem is that it does not return the source server command prompt unless I hit Ctrl + c
[abc@server]$ 0</dev/null echo "ls" | ssh -t -t [email protected]....
-2
votes
1
answer
287
views
How to redirect in nginx without using rewrite?
Can someone tell me how I can redirect x.domain.com to www.domain2.com in nginx without using the rewrite module/functionality?
2
votes
1
answer
354
views
Can I redirect an HTML link on our webpage to another server?
We have a website that we host. In the sites header, we have links to sections of our site. eg.
[Logo] [Buy] [Sell] [Pew Pew]
and the current links are
Logo: / (root of the site)
Buy: /buy/
Sell: /...
1
vote
1
answer
514
views
Redirect mobile browser in apache but allow them to view full pages
I know how to redirect browsers based on user-agent to the mobile site.
However I am having trouble allowing mobile users to view more then one version of a full pages.
Here is the scenario:
...
0
votes
2
answers
112
views
Redirection in Windows Server
I do have a similar question posted on Server Fault.
Still, I want to explore various ways by which one can effectively redirect traffic coming to a Windows Server. Is it possible that I have a ...
0
votes
1
answer
80
views
Configuring a Server to redirecting?
Assume my server domain is www.dl2.com
I wanna to configure it for redirecting each request to another server without showing the link of destination server.
e.g:
There is a download link in my web ...
2
votes
1
answer
2k
views
Apache server rewrite rules: how to avoid "implicitly forcing redirect (rc=302)"?
I've got a very annoying problem:
our webserver handles 2 (more actually but let's say 2 for a simpler example):
pretassur.fr
pretassuragentimmobilier.fr
Here's what I want to do:
change
(...
285
votes
5
answers
115k
views
Redirect, Change URLs or Redirect HTTP to HTTPS in Apache - Everything You Ever Wanted to Know About mod_rewrite Rules but Were Afraid to Ask
This is a Canonical Question about Apache's mod_rewrite.
Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes ...
0
votes
2
answers
2k
views
Fastest loading: Redirect with header location in PHP, or Rewrite with Apache?
after becoming aware of the major lag that hits my site becaouse of the homepage redirect, i read into numerous optimization threads, proving that a 301 redirect slams out approximately 100ms to a ...
0
votes
1
answer
122
views
.htaccess redirect doens't work correctly
I'm using a .htaccess to get all documents from an old site to the new one. The old site doesn't support PHP or mod_rewrite. I tried the following code:
Redirect 301 / http://www.new.com/archive/
I ...
1
vote
1
answer
363
views
Windows XP, pipe StdOut to Commandline
As an example, I would like the following commands to put a dir listing with all subdirectories to StdOut
copy con test
/s^Z
dir `test`
So, after lines one and two, there's a file in the current ...
1
vote
2
answers
5k
views
How to tell wget to use the name of the target file behind the HTTP redirect?
Let's a consider link such as htttp://www.mysite.net/download.php?id=267 that redirects to htttp://www.mysite.net/downloads/myfile.tar.gz
If I execute 'wget "htttp://www.mysite.net/download.php?id=...
0
votes
1
answer
2k
views
Nginx redirect one domain to another
I have two domain's set up on my server. Domain 1 is configured with google apps so that mail.domain1.com goes to google's mail. However, I would like domain1.com to redirect to domain2.com.
...
0
votes
2
answers
382
views
Mapping Wordpress.com to subdomain or path
According to this and this, Wordpress.com blogs can be mapped to a custom domain (e.g.: example.com). However, I don't see anything that says it can be mapped to a subdomain (e.g.: blog.example.com) ...
0
votes
1
answer
3k
views
How can I reroute IP addresses for my router?
I want to do something similar to what the hosts file does. I just want to set it so that certain IP's always go to the IP I want it to go to...
eg. Have...
158.204.281.222
always go to
160.201.21....
2
votes
2
answers
2k
views
How do I redirect multiple domains to a single domain in lighttpd
If I have the following domains in lighttpd:
domain1.com
domain1.co.uk
domain2.com
domain2.co.uk
How do i redirect all these to to 'domain.com'?
ie:
domain1.co.uk/some-path/ redirects to domain....
0
votes
1
answer
872
views
Setting IIS to redirect all requests to another server
My company currently added a new IIS server called server2 to replace server1.
I would like all traffic that tries to access server1 to be redirected to server2.
Is there a quick way to do this in IIS....