URL Rewriting maps an incoming URL to a modified URL, so that the request is processes as if the original request was made to the modified URL. This is often used to provide more search engine friendly URLs.
Questions tagged [rewrite]
2112 questions
3
votes
1 answer
Rewrite leads to infinite 301 redirect loop on existing directories
I went through questions/solutions found here, tried numerous approaches (including the [L] directive) but nothing really did the trick.
Situation Overview
Debian running Apache 2.2 proxying through nginx
Goal
Redirect everything to /index.php and…

Cummander Checkov
- 131
- 4
3
votes
1 answer
Drop trailing slash in apache for directory
I have the following url www.example.com/advice/ now notice the trailing slash at the end of the url? I would like that to be removed to be something like www.example.com/advice. Now when I enter that URL in the browser I get redirected to the with…

Steve
- 135
- 1
- 5
3
votes
2 answers
nginx sub directory wildcard rewrite
I have set up a server block on my nginx server, e.g. with domain testsite.com. I want to be able to install separate WordPress installations into direct child folders of the root folders, e.g. /var/www/html/testsite.com/childfolder1,…

physalis
- 145
- 1
- 7
3
votes
2 answers
How do you make a CMS and existing asp.net applications live together peacefully in IIS?
Our existing public website consists of a mish-mash of asp.net pages with mostly static content and some real web applications that are set up as virtual directories. We're now looking at installing Umbraco, which requires that you install it at the…

Shea Daniels
- 143
- 4
3
votes
1 answer
Nginx as reverse proxy with IBM Websphere upstream
I have an IBM WebSphere serving multiple domains:
x.x.x.x:8080/app1
x.x.x.x:9090/app2
...
I need to configure Nginx as reverse proxy to serve:
app1.example.com
app2.example.com
Here is my config but it's not working:
server {
listen 443…

Amir
- 31
- 3
3
votes
3 answers
lighttpd config and rewriting/disabling attempts to access favicon.ico
I've got lighttpd and apache working together on an app I'm building. lighty is serving out static content. However, each time a static asset is requested, I see a not found: favicon.ico message in the logs. I have added the following url…

Kyle
- 141
- 1
- 7
3
votes
0 answers
forward proxy with URL rewrite
Apologies if this is a newbie question -- I can't believe its hard, so I must be missing something.
I have an application at https://example.com/application/* .
It makes use of PNGs sourced from https://reference.com/maps/*
What I want is under the…

Woody Weaver
- 101
- 1
- 2
- 8
3
votes
2 answers
Redirecting www to non-www (apache, letsencrypt )
Ubuntu 14.04
Apache 2.4.18
I have set up a SSL certificate using letsencrypt. It works well but in order to work, I cannot have multiple vhost defined in one virtualhost configuration file. Each vhost has to sit in its own .conf file inside…

pixeline
- 658
- 3
- 13
- 29
3
votes
1 answer
What is the reason for redirecting the landing page of a site to a URL with '/#/' at the end?
What is the reason for redirecting the landing page of a site to a URL with '/#/' at the end?
The system administrators at my company use a Apache reverse proxy, and they always redirect all the external websites to a landing page that ends with…

djangofan
- 4,182
- 10
- 46
- 59
3
votes
1 answer
What is the URL_CHANGED Event on IIS7 Request Tracing Log?
I just enabled Failed Request Tracing for a site and I get a URL_CHANGED event as the third item on the log.
1. GENERAL_REQUEST_START SiteId="1", AppPoolId="DefaultAppPool", ConnId="1610613013", RawConnId="0",…

Ben
- 463
- 1
- 6
- 8
3
votes
1 answer
Redirect respecting port in the host header?
I'm often working with tunneled ports where I'll SSH forward a remote port 80 to a local port 8080.
One of the interesting problems I run into is that when I have a rule like this in NGINX:
rewrite ^/(.+)/$ /$1 permanent;
The rewrite will take a…

Naftuli Kay
- 1,708
- 6
- 24
- 44
3
votes
3 answers
IIS 8.5 URL Rewrite just wont work: rules have no affect at all
I am trying to set up http to https rewrite in IIS 8.5 using the Rewrite module. Absolutely nothing I have tried has any affect whatsoever. The URL is of the form: http://users-dev.somedomain.com. The rule currently created in the web.config…

MrLane
- 247
- 1
- 3
- 9
3
votes
1 answer
Multiple Websites on Multiple Servers behind One Public IP
Brief
I’m currently working on a project to bring two of our hosted servers (one email, one web) in-house to run alongside our other web server. Hosting one web server is fairly straightforward, but I need help with how I can divert the traffic to…

James Winstanley
- 31
- 1
- 5
3
votes
2 answers
Redirect wildcard subdomain to same subdomain on different domain
I have a domain with dynamic subdomains. The domain, unfortunately, has changed. As such I need to redirect
*.domain1.com
to
*.domain2.com
while keeping the subdomains the same. I have looked through the mod_alias and mod_rewrite documentation…

Joseph
- 161
- 1
- 8
3
votes
0 answers
IIS Reverse proxy and URL Rewrite don't work
I did following steps:
Installed all neede features to IIS (URLRewrite 2.0, ARR, ...)
Created default MVC Web Application in VisualStudio
Added this web app as new site to iis (I can access it by http://localhost)
Opened URLRewrite for this…

Ari
- 131
- 4