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)

1
vote
1answer
189 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 ...
1
vote
2answers
137 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 ...
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 ...
1
vote
1answer
126 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
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
194 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 ...
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
63 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
56 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 ...
0
votes
1answer
53 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 ...
0
votes
2answers
49 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. ...
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&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
vote
1answer
102 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 ...
-1
votes
2answers
77 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
29 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
50 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
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
88 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 ...
0
votes
0answers
78 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
63 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 ...
1
vote
1answer
112 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
2answers
381 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
90 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
0answers
73 views

nginx rewrite - proxy if file not exists

I have a local directory (uploads) and an S3 bucket setup. when the user is uploading an image the file is stored on the local directory: /uploads/member_id/image_name and after 30 minutes the system ...
0
votes
1answer
67 views

Apache mod_wl encoding issue for URI part

I'm using Apache2 in combination with mod_wl_20.so to loadbalance to 2 weblogic instances. Apache is listening on 7070. This plugin is partialy removing the encoding of my URI of some searches which ...
0
votes
1answer
171 views

rewrite rule nginx to add trailing slash with wordpress and exclude files with extension

I have one installation with wordpress running on nginx with php-fpm. I want to redirect all uris without final slash / to a same uri with /, and i want to exclude all files with extensions. I have ...
0
votes
1answer
29 views

Nginx rewrite and 50x.html

I'm trying to set up a website where writing for example /users/add redirects me to /index.php?table=users&action=add I wrote the following rules: rewrite ^/(.+)/(.+)/$ ...
0
votes
1answer
32 views

Apache - how to use a rewrite rule per vhost?

I have set up a vHost as follows: <VirtualHost *:80> ServerAdmin webmaster@example.com ServerName example.com ServerAlias www.example.com DirectoryIndex index.php DocumentRoot ...
0
votes
0answers
14 views

.htaccess rewrite sub directories as url query [duplicate]

I have .htaccess file in my root directory of the server. All the web pages in the server are in directories, like /Animal/Dog.php (the page can also be used without the extension). There are no ...
-2
votes
1answer
131 views

Nginx - Meaning of the ~ (tilde) in the location block of the nginx.conf?

WHat is the meaning of the tilde after the locaton block in the nginx conf ? for example location ~ ^/download/(.*)$ { alias /home/website/files/$1; } What is the difference between with and ...
1
vote
0answers
11 views

Setting a bail out proxy based on HOST header

We have set up a proxy during our migration phase and saw that people try to abuse it. It is correctly configured and forward only to our application server but these trials charge our main server. ...
1
vote
1answer
55 views

Nginx redirect all subfolders but the folder itself

I have a weird clash of names for a Wordpress installation, and I need to write a couple of Nginx rules to fix it. I used to have my software projects listed in the Wordpress page /projects, with ...
0
votes
1answer
272 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 ...
0
votes
1answer
49 views

nginx rewrite folder http to https

I currently have 2 server containers, 1 for http, and another for the same server but https. I want to merge those containers using Listen 80; and Listen 443 ssl;, which works but I need to rewrite a ...
0
votes
1answer
60 views

activate htaccess only on specific URI

I have an apache webserver running on an ubuntu system. To avoid access for unauthorized users, I have an active .htaccess: AuthType Basic AuthName "own area" AuthUserFile /path/to/.htpasswd require ...
1
vote
1answer
22 views

Redirect based on parameter

I'm trying to redirect a page based on the parameters passed. I would like redirect rewrite ^/join_trial to /test? permanent; and rewrite ^/join_trial?discount=free(.*) /test2? permanent; The ...
0
votes
1answer
54 views

MOD_REWRITE for rewriting GET requests [duplicate]

I need a .htaccess expression to use the second get variable or get the get variable by name. Currently my mod_rewrite alters the URL to remove index.php filename and alter the pageName GET variable ...
0
votes
1answer
126 views

Rewrite rules for Anchor CMS on Lighttpd

I installed Anchor CMS on my server running Lighttpd, and I am trying to setup pretty url's. I have anchor installed in a sub-directory "/blog". The htaccess file that works with anchor cms in ...
0
votes
1answer
49 views

301 permanent redirection changing URL structure [duplicate]

I changed category urls on site. Old are like this: www.example-name.com/category-name-exactly-same-keywords/ ...
0
votes
0answers
59 views

IIS 7.5: Redirect domain alias to specific page

We have a website that host pages for multiple companies, typically they redirect a pag on their website to our website. However, we have a client that wants a custom domain. So we have traffic ...
0
votes
1answer
47 views

Nginx rewritte http to https but not /admin

I have client area which is https and works fine with this added to client.mydomain.com.conf : server { listen 0.0.0.0:80; listen [::]:80; server_name client.domain.com www.client.domain.com; ...
0
votes
1answer
48 views

IIS 7.0 URL rewrite not working with languageparameter

I want to eliminate the language token from the url http://www.mydomain.de/en-us/home.aspx and rewrite it to http://www.mydomain.com/home.aspx can someone explain whats wrong with this IIS rewrite ...
0
votes
0answers
35 views

IIS URLRewrite not working to internal server

I have a GET web service running on Apache Tomcat web-server which is running on port 8080. I am trying to create a URL rewrite on IIS which is running on port 80, to map the internal service. Now ...
0
votes
0answers
15 views

Apache 2.2 rewrite (redirect) [duplicate]

I have a wordpress site that I'm having some issues doing proper redirecting to a new server and new url. Old server: http(s):\\devblog.server1.com New server: http(s):\\new.server2.com/dev/blog ...