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.

learn more… | top users | synonyms (5)

0
votes
1answer
267 views

Why is nginx changing HTTP method on rewrite rule?

Whenever I receive a request on mydomain.com, I redirect it to the www subdomain using the following rewrite rule: server_name mydomain.com; rewrite ^(.*)$ $scheme://www.mydomain.com$1 permanent; ...
0
votes
1answer
74 views

How to tell Nginx to not rewrite URL's in selected location

I am writing some PHP CMS code with a clean url implementation in Nginx. To improve security of my code I want to rewrite all of the requests in my root directory / using the following type: rewrite ...
0
votes
1answer
968 views

HAProxy - Perform multiple rewrites based on conditions

I am trying to rewrite a URI as well as a host header based on some conditions. Here is an example of what I'm trying to accomplish: I request http://sub1.example.com/test/files/other if ...
0
votes
3answers
2k views

Nginx redirect one path to another

I'm sure this has been asked before, but I can't find a solution that works. A website has switched CMS services, but has the same domain, how do I set up an nginx rewrite for a single page? E.g. ...
0
votes
0answers
20 views

Rewrite rules in config not working

I'm trying to rewrite URL without the use of .htaccess In /etc/apache2/sites-enabled/000-default, I've made the following changes: <Directory /var/www/> Options Indexes FollowSymLinks ...
1
vote
2answers
83 views

nginx point subdomain to subfolder

I want http://blog.domain.com/ to point to http://www.domain.com/blog Just a notice, not to redirect to that location, but just point to it. Also /blog is not a folder. It could be blog.php for ...
1
vote
1answer
65 views

nginx - specify different index file name for subdirectory

I want the directory index file in the root of my site to be index.html but within a subdirectory /foo I want it to be bar.html i.e. /index.html /foo/bar.html Also I want requests to /foo or ...
0
votes
1answer
36 views

IIS 7 Url Rewrite Not Working

Inbound IIS7 Url Rewrite Rule not working Below is the URL Rewrite rule I've defined. <rewrite> <rules> <rule name="Redirect domain.co.uk to www.domain.co.uk" ...
0
votes
3answers
258 views

nginx rewrite for wikkawiki

Just setup WikkaWiki on my server, I have been trying to have the links go from wiki.mysite.info/wikka.php?wakka=Start into wiki.mysite.info/DotMG. I tried following their guide at ...
1
vote
1answer
173 views

IIS URL Rewrite rule to redirect subdirectory traffic to https

I have a site where I've written an URL rewrite rule to direct all site.com traffic to www.site.com. Works fine. Now I want to add SSL to an application on a subdirectory. I've added the SSL to the ...
0
votes
1answer
26 views

RewriteRule Not Rewriting URL properly [duplicate]

I have the following virtual host file: <IfModule !wsgi_module> LoadModule wsgi_module modules/mod_wsgi.so WSGISocketPrefix run/wsgi </IfModule> <VirtualHost *:80> ...
0
votes
0answers
74 views

IIS 7.5 ARR rewrite rules equivalent for Apache mod_proxy rules

I'm trying to put RabbitMQ management interface behind a load balancer, using IIS 7.5 and ARR, whereby I'm routing rabbit.mydomain.local to localhost:15672. While I get the traffic to route, all api ...
1
vote
2answers
55 views

Apache2 and rewritemap - hours of trying

I stuck with rewritemap problem. What I want to do is redirect thousands of old nearly random urls to new ones. I will build map manually, but I need this code to work. RewriteCond ...
0
votes
1answer
63 views

Lighttpd rewrite rule for Flight PHP microframework

I'm using the Flight PHP microframework, and it includes its' own router, and needs the server to rewrite requests to the index.php file. It features rewrite-rules for both Apache and Nginx but ...
1
vote
2answers
128 views

Nginx: rewriting https:// to http://

I'm trying to get Nginx to rewrite incoming requests to a site my server prefixed with https:// to http:// (this is because a CMS used on this site forces URIs instead of relative paths -- essentially ...
0
votes
1answer
266 views

w3wp.exe crash (rewrite.dll) IIS 7.5

I'm experiencing several crashes in the last days on our production server and I can't figure out how to fix this issue. The server hosts an ecommerce application, written in classic ASP, that runs ...
1
vote
1answer
124 views

How to add rewrite rule for redirecting url in Apache Web Server

I am trying to configure autodiscover feature of outlook and thunderbird for my mail server. I have added a virtualhost entry with following rewrite rule to redirect config-v1.1.xml to ...
0
votes
1answer
49 views

Static Wordpress Multi-Site Rules From Apache to Nginx

I have been reading and trying things for 3 days, but I can't seem to get the right combination of rules to do what the Apache2 server did. The Apache2 rules are: RewriteRule ...
0
votes
1answer
42 views

IIS 7.5 Reverse Proxy URL Re-Write to website with gzip

If we own www.ourdomain.com and wanted to rewrite the url to say www.google.com, how would we deal with gzip compression on say the google domain. I'm trying to do a proof of concept and i believe the ...
1
vote
1answer
183 views

IIS Reverse Proxy Not Working With Response.Redirect() in ASP.NET

I am trying to set up a reverse proxy, using the tutorials here, here and here. The site is set up on localhost:8080, with the reverse proxy using localhost:8080/myProxy. When dealing with standard ...
1
vote
2answers
2k views

Nginx: Rewrite from base domain to a sub directory

I have a blog hosted at http://site.com/blog. How do I instruct nginx to rewrite requests from site.com to site.com/blog? This should not be permanent.
0
votes
1answer
61 views

.htaccess Rewrite Rule not rewriting alias

I am attempting to serve up a different robots.txt for alternate subdomains that I am using for domain sharding so that google doesn't index m1.example.com and m2.example.com. ...
-1
votes
1answer
55 views

Rewrite only if Image don't exists with .htaccess

How do I make RewriteCond+RewriteRule change site1.com/folder1 to site2.com/folder1, only if file in this directory don't exist. For example: site1.com/wp-content/uploads/2014/03/image.jpg If image ...
1
vote
2answers
4k views

why i cannot download jdk from oracle web site directly without AuthParam?

that is download with the following command, why it fails to download that file? wget http://download.oracle.com/otn-pub/java/jdk/6u35-b10/jdk-6u35-linux-i586.bin the following command works, but ...
0
votes
1answer
52 views

Rewrite on root of domain only in nginx

I've got YOURLS server running to host short urls for my company, so that we can provide short URL's to our customers. I'm using nginx, and for root of the domain, if they aren't using a proper short ...
1
vote
2answers
2k views

URL Rewrite in WebLogic 11g

I have a client running a WebLogic 11g install on a Windows Server machine who wishes to implement Apache-style mod_rewrite-like functionality to translate requests for easyurl.com to ...
0
votes
1answer
754 views

URL Rewrite in IIS7 Web Service - WebService.asmx => WebService in the SOAP doc

I have an IIS7.5 (Server 2008 R2) based web service that I would like to make as independant on the current implementations technology as possible. I am using the URL rewrite module ...
0
votes
2answers
47 views

how to redirect to https based on source IP?

I have a website running apache which is accessed internally (rfc1918 address space) as either http://hostname or http://hostname.local externally (public address space) as https://example.org. ...
1
vote
1answer
99 views

How can I reduce the response buffer size of the reverse proxy?

I have configured some reverse proxies in order to map some HTTP audio streams that are normally accessed via different port numbers (e.g. http://fooserver:18030), to URL addresses accessible on ...
0
votes
1answer
64 views

Can Nginx redirect or rewrite URLs starting with “?” without using an “if” directive?

I have an RSS feed example.com/?format=feed&amp;type=rss from an old Joomla install. The site is now built with Jekyll, and uses a new URL example.com/rss.xml for the RSS feed. Rewrite rules ...
1
vote
1answer
98 views

How to transparently redirect a user without rewriting URL when page does not exist?

I have a node web app with nginx acting as a proxy. Here's the server block for that site : server { listen 80; server_name subdomain.example.org; location / { ...
-1
votes
2answers
76 views

URL Shortener & Site Redirection on same domain

i have one domain(http://sdm.fm), And I would like it to work as a redirect to http://somdomato.com. But at the same time I would like it to work as a URL shortener. Using phURL. Like: ...
0
votes
1answer
28 views

Nginx and Wordpress: Add php after postname

I'm doing a migration from Apache to Nginx of some Wordpress sites. Now I'm dealing with the URL rewriting, because one of the blogs has the following URL structure: %postname%.php And I'm using ...
0
votes
1answer
49 views

Nginx Extract Top Directory Name From Request URI

I am in the need of being able to use top directory from the $request_uri, for example: /dir/sub/slug -> /dir I read the answer of this question: How to extract Only the file name from the request ...
1
vote
2answers
1k views

DNS (bind) : How do I redirect an http request to a different domain, based on the requested domain

I host my own DNS server and would like to be able to redirect links from within the DNS server so that redirection is seamless. Example: redirect all requests for www.yahoo.com to www.google.com. ...
1
vote
1answer
49 views

Rewrite rule for a url conatining space in its end in web.config?

I am working on a rewriting process. I have been stuck on a point that. <rule name="Uk3" stopProcessing="true"> <match ...
0
votes
0answers
82 views

How to get IIS to accept-encoding: gzip(gfe)

Google's PageSpeed Service forwards requests with the accept-encoding header set to gzip(gfe). Unfortunately IIS chokes on this with the following: HTTP/1.1 400 Bad Request Content-Type: text/html; ...
0
votes
0answers
20 views

IIS7.5 URL Rewrite generating error after importing site

I have two Windows 2008 R2 servers with IIS 7.5. One server has a website configured with URL rewrite rules. I copied the site directory to the second server and set up a new site, using this ...
1
vote
1answer
200 views

Using mathematical operations in IIS 7 Url Rewrite Module

I download the URL Rewrite module for IIS 7. I'm trying to rewrite url of this form: http://www.site.com/1234 to http://www.site.com/234 (get the number and rewrite its modulu by 1000). I saw that ...
0
votes
0answers
73 views

FallbackResource in subdirectory

I manage a large number of PHP applications using front controllers and the following htaccess file: FallbackResource /index.php Yes, that is the entire file (for each application)! However, a few ...
1
vote
1answer
107 views

Nginx htaccess rewrite specified folder

I tried to convert this htaccess rules to nginx: apache # Necessary to prevent problems when using a controller named "index" and having a root index.php # more here: ...
1
vote
1answer
62 views

Rewrite nginx rule for for a directory to another domain/sub domain

i have setup the following nginx rewrite rule . But doesn't seems to be working, * location /images { rewrite ^(.*)$1 http://sub.domain.com/$1 permanent; } * for images i'm trying to ...
0
votes
1answer
40 views

Rewrite rule custom 301 redirection

I have link like this: www.example.com/full-image/folder/subfolder/image-name.jpg-some-custom-keywords.html and I need 301 redirection to url like this: ...
1
vote
2answers
353 views

Nginx Redirect via Proxy, Rewrite and Preserve URL

In Nginx we have been trying to redirect a URL as follows: http://example.com/some/path -> http://192.168.1.24 where the user still sees the original URL in their browser. Once the user is ...
0
votes
0answers
87 views

Redirect only /index.php page and allow access to all sub directories

I'm running ExpressionEngine (www.mywebsite.com) as the root of my website and Magento in a sub directory (www.mywebsite.com/store) I'm trying to redirect the Magento homepage (and only the homepage) ...
0
votes
1answer
59 views

Nginx second domain rewrite rule

What im trying to do: I have nginx running with wordpress Now i want DOMAIN-2 to redirect to a path of DOMAIN-1 http://DOMAIN-1/Content-for-Domain-2 but not just a simple redirect, it should ...
1
vote
0answers
41 views

IIS rewrite rules for subdomain and nonexistent files

Setup: I know how to use a rewrite rule to route urls to a routing script such as router.php. I know how to use a rewrite rule to route urls containing a subdomain to subfolders in the document ...
1
vote
1answer
35 views

Is it possible to redirect a url to another url so that users see always the original url?

I have a website whose url is subdomain.example.com but I want users to use a different url to access it, example.com/subdomain. Just to add a bit of context, the two domains are on two separate ...
1
vote
1answer
55 views

apache change proxy request url rewrite

I have problem with proxy requests. I need to enable apache mod_proxy for my subdomains but i forgot to set Allow from mydomain.com, it was Allow from all...Yes, i created open proxy for all world... ...
0
votes
1answer
475 views

IIS7: rewriteMap equivalent of exact match rule

I have a site at mydomain.com/mysite and I want to configure a set of redirections in IIS7. To redirect from mydomain.com/mysite/old.aspx to mydomain.com/mysite/new.aspx I can write: ...