Tag for questions related to issues with configuration of redirects in HTTP servers, problems they may cause or solve. Redirections are used to redirect user traffic to new location of content, as a way to handle errors or for load balancing. They are usually implemented with HTTP redirects have ...
1
vote
1answer
30 views
Why example.com redirects and www.example.com not?
I have a working domain www.mydomain.es and I need that mydomain.com and www.mydomain.com redirects to it. This is my bind config:
$ttl 38400
mydomain.com. IN SOA r12345.ovh.net. ...
2
votes
1answer
45 views
How To Manually Redirect URLs To a New Blog
I'm building my new blog on Tumblr, I've already got all my old WordPress posts and migrated them to their new home. The problem is that the Tumblr permalinks are different from the WordPress ones ...
0
votes
1answer
22 views
.htaccess and exact matches
I'm having trouble rewriting the following:
mysite.com
mysite.com/myproduct
www.mysite.com
www.mysite.com/myproduct
to mysite.com/myproduct/
Whatever I tried, it was either missing rewrites or ...
0
votes
1answer
23 views
.htaccess - redirect non www to www and retain subdomains from redirecting
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
0answers
12 views
Redirecting port 80 requests to local web server with IPFW
I'm setting up a freebsd router and want certain IPs on my network to be forwarded to our local webserver if they make port 80 requests.
An example would be - banned user tries to surf the web, but ...
1
vote
3answers
50 views
Examples of 302 vs 303
What is the difference between a 302 and 303 response?
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
10.3.3 302 Found
10.3.4 303 See Other
Are these interchangeable or why would one be ...
0
votes
1answer
45 views
Redirect all traffic regardless of port or protocol to temporary page
I have a server with multiple domains. Both http (apache) traffic and http-alt (tomcat) traffic.
If/when I take the server down, I'd like to be able to redirect people to a temporary 'undergoing ...
2
votes
1answer
69 views
Windows redirect by port? [closed]
Possible Duplicate:
Forward Incoming Traffic with Windows hosts file?
In Windows you can redirect traffic from a host by using the hosts file.
C:\Windows\System32\drivers\etc\hosts
...
0
votes
1answer
50 views
How to redirect traffic throught tunnel with Firehol utility?
Special for pQd: please, don't change title again. I need to know, how configure Firehol utility on host 1, not firewall 2. And thank you for your reply. I am studying openvpn now.
There is next ...
0
votes
1answer
22 views
How to redirect from /page to /cms/page and hide "cms“ in the URL?
I installed cms at Linux server 10.0.0.1/cms/. I want to redirect every visit to 10.0.0.1/pages to 10.0.0.1/cms/pages, while hide "cms" in the URLs.
Several attempts have been tried but failed.
1> ...
2
votes
1answer
24 views
Redirecting paths to shebang through .htaccess?
I had a small bit of code that would redirect pages accessed from my own domain to their hash addresses, like so:
example.com/stationary.html => example.com/#/stationary
This was the code:
...
1
vote
1answer
17 views
IIS rewrite rules skipped even though the pattern matches
Sorry for the vague title, the problem is too complex to summarize in a short phrase...
I'm trying to set up the following redirection rules:
blog.mydomain.net/en/something: redirected to ...
1
vote
1answer
47 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:
...
1
vote
3answers
52 views
How to forward all requests to an IIS7 server to a new IP address
I have an old physical server and a new physical server. I am moving everything from my old server to the new server. And will then point my domain registrar records to point to the IP address of the ...
0
votes
0answers
46 views
Redirection from subnet to the Internet with Iptables [closed]
I have this in my home:
laptop -->((192.168.10.0/24))<-- [eth0]desktop PC[wlan0] -->((192.168.1.0/24))<-- router ---> ((Internet))
Meaning: The laptop is connected to the desktop PC via ...
0
votes
1answer
13 views
301 Redirect issue when term in new and old URL
We are trying to create a set of 301 redirects where the exact string from the old URL is also present in the same position in the new URL. See the example below:
Old URL
...
2
votes
1answer
55 views
Mass 301 redirect URLs with Nginx
I have a list of 600 urls. Due to a change in the system the urls will change to a new format. I will have a list with the old urls and corresponding new ones. But how do i 301 redirect all of them?
...
3
votes
1answer
63 views
Is there any useful/funny HTTP redirect for all those vulnerability probes? [closed]
I'm sure your HTTP logs, like mine, are full of 404 errors of various probes for common vulnerabilities and such:
File does not exist: /www/XXXXXX.XX/data/email
File does not exist: ...
1
vote
2answers
101 views
Forwarding subdomain to different port on Windows IIS 7
I have a IIS 7 server with Plesk setup on a Windows 2008 R2 server and I have created a subdomain sub1.domain.com, which by default leads to my webserver on port 80, but I don't want that.
I want the ...
0
votes
3answers
48 views
www vs. non-www and subdirs with special .htaccess
In my root folder, the following captures https://example.org and http://example.org and redirects to its respective version (http or https) with the www added back in. (It's a requirement they had ...
0
votes
2answers
57 views
WWW record in DNS (type CNAME) pointing to a site is recommended?
I have a reseller host the sites of my clients are hosted.
One such customer wants to keep the DNS management with them.
For this, they request the CNAME for them to do the following change in DNS:
...
1
vote
3answers
110 views
DNS Redirection - no such thing, or is there?
Some domain registry like europeregistry.com allows users to buy and register a domain and set up a "redirection" to an existing website.
Is this redirection a function of DNS or has the registry ...
3
votes
1answer
48 views
How do I pass headers from nginx X-Accel-Redirect back to the browser?
I'm using the nginx X-Accel-Redirect feature where a proxied backend (A) can "internally redirect" nginx to reprocess a new URI (B) as if that were the one originally given by the client browser.
It ...
0
votes
1answer
23 views
Redirecting URLs using htaccess & PHP?
I would like all the URLs of the following format:
mysite.com/xyz
to display:
mysite.com/show.php?keyword=xyz
How can I do this?
0
votes
1answer
31 views
htaccess redirect everything to example.com/index.htm
I want to redirect any request from one domain to another but not request the page on the new domain or pass parameters. The closest I got was:
RedirectMatch permanent ^(.*)$ http://www.example.com
...
0
votes
2answers
17 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
1answer
126 views
Redirect URL using Mac OS X Server Lion
I have just set up a Mac Mini with OS X Lion Server to host my own website. I have registered multiple domain names, but I would like the user to be automatically redirected to my main domain name if ...
0
votes
1answer
28 views
Apache: www SSL site not forwarding to non-www version
I have a client who has a PHP website hosted by Apache. The website is for internal use only, but they still want their employees to be able to access it from their phones and home computers. The ...
1
vote
1answer
40 views
We inadvertently changed our ssl certificate from https://www to https://, and Google remembers the old way?
We launched an ecommerce site a while back and got an ssl certificate for https://www.mysite.com. The site was abandoned for a while, and then recently resurrected. We got a new ssl certificate, but ...
2
votes
2answers
101 views
Nginx - How to redirect users with certain IP to special page
I run quite a big image gallery and there are 5 visitors that create an enormous amount of traffic by downloading the whole site every day using webcopiers. Those visitors have static IPs as it seems. ...
0
votes
1answer
109 views
Nginx redirecting to (seemingly) random domain
My brain is breaking over this. Every site I have is redirecting back to one of my other ones... I would say it was the /default site, but it wasn't until I just made it the default site, which ...
0
votes
1answer
35 views
How do I redirect a directory's default file with IIS7?
I want the default document in a folder to redirect to another URL but I still want other files in the same directory to be served normally. How can I do this in IIS 7? For example:
my-site.com/ ...
3
votes
1answer
63 views
Can I alias all directory requests to a single file in nginx?
I'm trying to figure out how to take all requests made to a particular directory and return a json string without a redirect, in nginx.
Example:
curl -i http://example.com/api/call1/
Expected ...
0
votes
1answer
65 views
exim filter for unseen delivery to multiple addresses
I need to forward all mail to an address on to two other addresses, whilst keeping a copy of the original email. I've got the following exim filter set up:
unseen delivery address@anotherdomain.com, ...
0
votes
1answer
90 views
HAProxy and 2 webservers
I have a website that is split into two different servers:
chat server in node.js
normal website (lighttpd + php + whatever)
now, I have set HAProxy in the same machine as node.js chat, so that ...
3
votes
2answers
218 views
Iptables - Redirect outbound traffic on a port to inbound traffic on 127.0.0.1
I will be awarding a +100 bounty to the correct answer once it is available in 48 hours
Is there a way to redirect traffic set to go out of the server to another IP, back to the server on localhost ...
1
vote
0answers
51 views
Apache redirect rule not processing correctly
Consider this code:
RewriteEngine On
RewriteRule ^$ http://%{HTTP_HOST}:8177/index.jsp [C]
RewriteRule ^http://([^:]+):([^/]+)(.*) http://$1:8177$3 [R=301]
RewriteRule ^/$ ...
0
votes
0answers
30 views
Redirect IIS site.com/blog to another server
I have 2 servers. First Server hosts IIS 7 site.com, and Second Server hosts IIS/PHP WordPress Blog.
I want site.com/BLOG to load from the second server, and not sure what specifically to setup or ...
0
votes
1answer
59 views
htaccess Redirect ./ (dot slash) to the root of the site
I'm looking for a htaccess redirect (not rewrite) which will redirect this:
site.com/./everything
To
site.com/
So, everything can be anything, like /./script.php or /./path/to/script.php.
I ...
0
votes
1answer
35 views
Redirecting apache root requests under a specific folder transparently
I host 40+ sites on a single server, each site being it's own Joomla installation (managed by a central distribution system, of course). Every site is in it's own directory, /var/www/<site>. ...
0
votes
2answers
88 views
Curl and Wget returns different response code
I am trying to wget a link, this wget works fine on my local machine but it doesn't do so on the server.
i tried to check the response header and i got the following on my local laptop
curl -I ...
1
vote
1answer
25 views
.htaccess 301 redirect to new site
I want to redirect some of my old sites to my new sites. Some Googling suggest pasting this into my .htaccess:
redirect 301 / http://new.com/
However, the new site does not have the same structure ...
1
vote
1answer
83 views
IIRF on IIS 6 Rejects Server Connections
My clients have two sites (call them, say, mainsite and subsite) that are run as subscription services. They want clients to be able to access subsite only if they've got a paid subscription on their ...
0
votes
1answer
74 views
RedirectMatch redirect every url to https except few urls
At present I am redirecting all http urls to https urls using the following directive,
RedirectMatch permanent ^(.*)$ https://someserver.com$1
Now I am stuck with an scenario where I have to ...
0
votes
6answers
281 views
Changing Servers - Redirect to new IP = No Downtime?
I am changing servers of my website. The IP of old server cannot be moved to the new one. To have no downtime I am planing to do the following, please someone confirm it will work:
Setup the new ...
2
votes
1answer
112 views
exim4 redirect mail sent to *@domain1.example.com to *@domain2.example.com
Current situation:
We have a VPS that hosts a website example.org. Exim is configured to work as a smarthost. All emails sent through exim are successfully relayed to another mail server (that is ...
1
vote
0answers
47 views
Plesk: Spamassassin ignores emails to redirected accounts
When I set up email redirects within Plesk 9.5, Spamassassin ignores all emails sent to the redirected address and only scans emails that are sent directly to the address which has a mailbox.
Steps ...
2
votes
1answer
104 views
Windows server 2008 DNS http redirect
on my lan i have two servers. One windows server 2008 and one debian webserver. I would like to configure my windows DNS to redirect all traffic on my lan to, for example "example.com" to my local ...
0
votes
1answer
105 views
Do not expose HTTP 302 redirect by HTTP reverse proxy - handle it internally
I'm creating a Facebook client for a very limited device - its web browser (ANT Galio) does not handle properly HTTP302 for source of images.
My UC looks like this - in web application markup profile ...
0
votes
1answer
56 views
Strange redirect loop issue
I'm getting a very odd redirect issue on my server. URL's without a trailing slash are being redirected to a URL with a trailing slash. The problem is that URL then redirects infinitely to itself.
...