Tagged Questions

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 ...

learn more… | top users | synonyms

2
votes
1answer
10 views

Apache As-Is Redirect is Internal… WHY?

So I have a pretty standard Apache 2 setup, with AllowOverride all. And I have three files in the "testing" folder under my docroot: .htaccess AddHandler send-as-is .asis page.html this is the ...
0
votes
0answers
7 views

IIS Url Rewriter to detect feed and redirect to Feedburner

My site generates its rss feed in http://mysite.com/sydnication/rss/articles path. I want to redirect all users to feedburner when they access this url except for when feed burner's own user agent ...
1
vote
1answer
22 views

How to redirect all subdomains do one domain in Apache config file without specifying domain name?

I want to make general rule for all my domains, so I don't have to specify each of them individually. I have these two lines in my Apache config file: RewriteCond %{HTTP_HOST} ^domain\.com ...
0
votes
0answers
33 views

apache allow acces from different host

I'm running an webapp on http://localhost:4020/ I proxy some requests from it to my apache server running on http://localhost:80 But instead of the file I want I get this error message: Client sent ...
0
votes
2answers
31 views

Redirect `foo/` to foo/bar/` from within `foo`

I have a folder ~/Branches/ that is accessible via apache2 at localhost/~me/. Now I have localhost/~me/branches_index/web/index.php that I would like to make available at localhost/~me/branches_index/ ...
2
votes
1answer
55 views

.htaccess redirect works for IP, but not for domain name

I have the following .htaccess file: RewriteEngine on RewriteBase / RewriteRule ^(/?)dir/?$ $1dir/subdir [L] RewriteRule ^(/?)subdir2/?$ ...
2
votes
2answers
41 views

Rewrite URL Domain Name when IP address used

My apache home server listens for HTTP requests on an alternate port (port 8080), but I would like to let users type my domain name (example.com) without having to specify the port. So far I've ...
1
vote
2answers
41 views

If I see domains MX to google, which address I will have?

If I set my domain's MX records to google as it said here http://support.google.com/a/bin/answer.py?hl=en&answer=33915 then what address I will have if my domain is mydomain.com and my email on ...
0
votes
1answer
37 views

iptables redirect range and exclude

i have this iptables and working. iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 0:20 -j REDIRECT --to-port 8080 #bypass SSH iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 23:442 -j ...
0
votes
1answer
38 views

Apache subdomain redirection failing

I just bought the domain vas.im, I added a DNS rule for vas.im and www.vas.im, then I tried to get apache2 to redirect the latter to the former. I enabled mod_rewrite, appended ...
1
vote
1answer
27 views

How to redirect traffic with Apache and Dlink 524T ?

I would like to redirect all LAN http traffic to my Apache server (which is located temporarily on my laptop ). The basic idea is that every user who connects to the network and tries to connect to a ...
0
votes
1answer
17 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
1answer
24 views

How do I Setup Multiple Sites in HostGator Shared Hosting?

I recently decided to consolidate all of my random projects into a single hosting account as it was starting to get very expensive to run each on an individual hosting plan. I purchased the HostGator ...
2
votes
2answers
71 views

Forwarding traffic to a specific port on to different IP

My friends have a Mine craft server with an ip to connect (206.217.128.131:25571). This is obviously not ideal as a true domain name would be more user friendly. Although I share a VPS with a friend ...
1
vote
2answers
46 views

Redirect based on location, countries and languages: is there a good answer?

I've got a site that needs to have at least two almost identical versions for two different countries/languages, and visitors should access one or the other depending on their location, country or ...
0
votes
2answers
29 views

Apache Redirect TO IP Address (non-URL)

I've been trying to redirect web traffic from HTTP to HTTPS by adding the line to the httpd.conf file: Redirect permanent / https://100.100.100.100 but to no avail. The browser response is Firefox ...
1
vote
1answer
96 views

How to rewrite URI from root if file exists in folder?

I have a public folder in my document root. I would like to redirect all the files that are not present in document root, but are present in the public folder. (So if the same file is in two places, ...
0
votes
2answers
46 views

Changing DNS when I have different email and web hosts

I've just built a new site on a NEW host at this domain www.new-domain.com The current live site is at a different domain www.old-domain.com and different host I want www.old-domain.com to redirect ...
0
votes
1answer
60 views

Forward Http Request to different machine

I am working on a MAC machine and expected to use some of the Webservices which are present on a different network. The general way to access these webservices is through VPN to that network and then ...
1
vote
1answer
66 views

Redirecting users who have come from the wrong Referer

Ignoring the merits of whether we should make this change or not (the circumstances are slightly complex and probably covered by my NDA), our client would like us to require that visitors to the site ...
1
vote
2answers
51 views

Using curl to request URL that redirects to relative URL with anchor tag

I'm using curl to request a URL that redirects to a different URL using a Location: line like: Location:/path/to/resource#name As I understand it, that line in the redirect response is invalid per ...
0
votes
0answers
12 views

Web.config -> Redirect old blog URL's to new pattern [migrated]

I just changed my blogging software and I have now the problem that I want to redirect my old imported blog post to the new url pattern. My old pattern looks like: ...
1
vote
1answer
47 views

.htaccess Redirect causes Internal Server Error

.htaccess Redirect /index2.html http://example.com/index.html causes the following error Internal Server Error The server encountered an internal error or misconfiguration and was unable to ...
0
votes
1answer
70 views

(Probably) Simple mod_rewrite - remapping my site's URLs

This problem is driving me nuts. I've tried reading loads of tutorials about how to use mod_rewrite but I just can't get my head around it. These questions must get asked all the time, so apologies ...
2
votes
1answer
72 views

Are there downsides to forcing an https connection for all site traffic?

A client of mine is a workshop-based school that gets ~80K page views per month, caters to creative professionals, and offers course registration (and payment) online. The payment portions of the site ...
0
votes
2answers
26 views

Apache: Redirect all hits on subdirectory (301)?

Probably a simple problem, but I cant seem to figure it out: I've recently created a new website from scratch to replace an older website. The old website had a good SEO ranking which is obviously ...
0
votes
1answer
23 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).
0
votes
1answer
62 views

nginx rewrite directory in middle of path

I am trying to do the following nginx redirect /p/username to /profile/username seems like it should be simple but I cannot figure out how to isolate the username which can variable.
0
votes
2answers
34 views

HTTP / Redirecting to a URI on the server

I want to redirect a certain URI to a new one on the same server. This can be done by sending a response with a 3xx code, and a 'Location' header. Now the HTTP/1.1 standard dictates that this should ...
2
votes
1answer
124 views

htaccess: how to rewrite to clean urls and redirect old urls to the new clean ones?

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 ...
0
votes
2answers
44 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 ...
0
votes
1answer
21 views

301 permanent redirect with extensions and sub folders

i tried to permanent redirect 301 from http://example.com to http://example1.com RewriteEngine On Options +FollowSymLinks RewriteCond %{HTTP_HOST} ^test\.example\.com$ [OR] RewriteCond %{HTTP_HOST} ...
0
votes
1answer
89 views

URL Rewrite in IIS 7.5 not working

I am trying to redirect all http traffic to https as the site requires SSL. For example, if someone navigates to http://site.com or http://www.site.com I want to redirect the user to ...
0
votes
1answer
124 views

http -> https redirection with websockets

I have a Node.js app which is heavily reliant on websockets. I want to redirect anyone trying to access it via http (80) to https (443). I would use nginx however it does not play well with ...
5
votes
2answers
85 views

How does www mobile redirection work? [closed]

How does a website detect whether http requests are comming from a mobile device or not? In my mind, it's all just TCP/IP packets with a standard address/port header right? Is this a ...
2
votes
0answers
91 views

How to not redirect when cookie is set in haproxy?

On my site I redirect users with mobile devices to a mobile site using my Haproxy loadbalancer. I got some complaints about that and want to offer the users a link back to the "classic" portal. As not ...
0
votes
1answer
57 views

If directive not working in apache VirtualHost conf, says “Invalid command”

Why?? <VirtualHost *:80> ServerAdmin admin@mydomain.com DirectoryIndex index.php <If "%{SERVER_PROTOCOL} != 'HTTPS'"> Redirect / ...
1
vote
1answer
52 views

use a domain on one server to load an application on another server

I have an application sitting on a ubuntu operating system located on one server. It responds to an ip address with domain, let's say, abc.com. Now there's another server that responds to the domain, ...
1
vote
1answer
34 views

Print Out Redirect URL without Actually Redirecting

I have set up a server that is a clone of our production server that we want to use as a test server for testing our redirector. Importantly, we don't want to actually redirect to these urls like we ...
0
votes
1answer
17 views

Test Server for Redirector Display Redirect URL without actually Redirecting

I am setting up a test server whose primary purpose is to test the scripts we are using for Apache redirectors. On the test server, I don't want to actually redirect to the page but instead I want ...
0
votes
1answer
52 views

Redirect a url to a different server

I'm looking for a way to redirect any url I visit on my computer (Mac), say www.example1.com/a/b/[\d]+, to another url www.example2.com/a/[\d]+. I don't want this to be on the IP level, just for that ...
0
votes
3answers
174 views

How to redirect request for specific domain to a specific web application listening on a specific port?

I have apache2 running on the port 80 and other application server running on 81. I would like to redirect traffic only for one specific, selected domain (mydomain.com) to server running on the port ...
3
votes
2answers
38 views

Redirect absolutely anything to new domain with .htaccess

Ok, so I'm in need a simple redirect: Redirect 301 / http://www.new.com/ Similar to that, except I want it to catch anything, such as: ...
0
votes
1answer
38 views

Run CPanel from account domain

We have one server running WHM/CPanel with quite a few (~60) low traffic sites we can't be bothered to put on a proper hosting platform. CPanel is accessible on every domain at ...
1
vote
1answer
38 views

Lighttpd: Redirect specific location and sub-locations from HTTP to HTTPS (without using domain name)

I would like to redirect a specific section of a website from HTTP:// to HTTPS:// using Lighttpd. I've been looking at this Lighttpd wiki entry, but the examples don't work the way I want. I have ...
1
vote
3answers
63 views

How do I redirect a sub-domain to an external server?

I'm trying to redirect a sub-domain off my main domain r.example.com to another server. From what I've found so far, I can do this by simply adding a new line to the DNS file, like so: r ...
0
votes
1answer
77 views

Locally redirect Domain1.com to Domain2.com/subdir on one computer

I am running a FreeBSD server and I want to redirect a specific website domain to another domain including subdirectory. I want to bypass that domain to alter the XML results it returns. I tried the ...
0
votes
0answers
17 views

Using PF to redirect locally generated traffic through proxy?

Is it possible to use PF on OSX/FreeBSD to redirect locally generated connections to server A to a proxy on server B? I can only find info on redirecting traffic that passes through two interfaces; ...
-1
votes
1answer
101 views

URL Redirect to IP on LAN [closed]

Possible Duplicate: Is there a way to forward a port based on subdomain? wOk here is what I need to do: Listen on various ports and route to LAN IP addresses based on url and port. So I ...
0
votes
1answer
32 views

Apache HTTP with Apache tomcat - How to redirect

I have installed in my linux server an Apache HTTP server (the main) and a Tomcat7 server. I want that all requests that are made for projects hosted in Tomcat to be redirected by the Apache HTTP ...

1 2 3 4 5 12