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
votes
0answers
10 views

Using URL Rewrite to change part of URL

I'm trying to use an URL Rewrite on an IIS 8.0 to rewrite existing URL:s on a developer machine. The reason for this is that I don't want to change existing (old) code. What I'm trying to achieve is ...
0
votes
0answers
7 views

Zend Framework won't work for URLs with trailing slash — how to configure nginx to rewrite URLs properly?

I am setting up an nginx server to be used with the Zend Framework. For the most part it works. However, if there is a trailing slash on the end of a URL, for example http://localhost/test/ vs ...
0
votes
1answer
22 views

nGinx Redirecting to https:// on all URL

I am trying to get the following to work so that no matter what you type in the URL bar you always go to "https://www.". So far www. does not go to https://www. and https:// does not go to ...
0
votes
0answers
15 views

Correct rewrite rules from Apache to Nginx? [closed]

I'm having quite a difficult time translating some .htaccess rules to Nginx. My .htaccess codes are: RewriteEngine on Options -Indexes RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC] RewriteRule ^(.*)$ ...
0
votes
0answers
11 views

Application request routing “enable proxy” setting checkbox gets cleared

I have 5 IIS7.5 servers in a webfarm (WFF). The primary and all 4 secondary servers have ARR installed due to the need for a reverse proxy urlrewrite rule on one one of the sites in the farm. This ...
0
votes
2answers
22 views

RewriteRules not stopping with [L] flag?

A simpel mod rewrite in .htaccess. If I open for example /lib/js/core/jquery.min.js, Apache2 takes the last rule and not the first. How can I fix this? RewriteEngine on RewriteRule ...
0
votes
0answers
25 views

Squid configuration for accessing https site requring client certificate using url-rewrite

I've never dealt with setting up a proxy server and that is why a bit puzzled about how to set up a rather complicated config.Help me, please! I've got squid running with login/password ...
0
votes
1answer
23 views

htaccess subdomain Redirect issue

I am trying to build a wordpress site with mobile. I have set the sub-domain in httpd.conf and htaccess. now i add some custom search in a e:\wp\custom\ folder, another mobile custom search in ...
0
votes
0answers
21 views

Nginx rewrite rule (from Apache)

I'm moving an Apache web server to Nginx. I have this regex: RewriteRule ^(.)_picture_v(.)[.]([^.]*)$ $1.$3 [L] To do this: When I request this url: ...
0
votes
2answers
42 views

.htaccess - complicated conditions

I've been trying to wrap my head around .htaccess for most of the weekend, but I keep stumbling; I can get the server to work with one set of rules, but no more than one at a time. My application is ...
0
votes
2answers
35 views

Advice on mod_rewrite url in Apache

I'm trying to set up a mod_rewrite rule so that when the webpage www.mysite.com/blog is requested a page from the blogging service Tumblr is loaded. I have set up my Tumblr site so that ...
0
votes
1answer
17 views

nginx load different files if varibles

I want to server up landing.html if they come without any url parameters and send them to app.html if they do. I would think this would work but it tells me I can't try files within that block. ...
1
vote
1answer
16 views

How do I make virtual host DirectoryIndex file appear in the url?

I have setup a virtual host which specifies a default file to load when the URL is called. The problem I have is that I need that default DirectoryIndex file to appear in the URL. So when I go to: ...
0
votes
1answer
19 views

Nginx rewrite rule - appending language prefix

I have a site spanish.com. I want users to load pages under "es" directory, i.e., spanish.com/es. For example: Users should see: spanish.com but spanish.com/es is loaded Users see ...
1
vote
0answers
23 views

How do I make nginx rewrite requests to a different server (which is in the same config)?

I am trying to achieve the following: Some files on my server should be served from a subdomain (static.example.com) for performance purposes (avoiding cookies). However, some of the content is ...
2
votes
0answers
31 views

Nginx directory post

THere is a piece of legacy code I'm working on, I can't alter where it POSTs to so I just need to figure a way around it. THe bit of Javascript makes a post as follows - POST /authentication/login/ ...
-1
votes
0answers
13 views

Rewrite Rule for long page [duplicate]

does anyone can provide me the Rewrite Rule HTACCESS to redirect user who access www.domain.com/a/b/c/d/e (unlimited slash) to www.domain.com/search.php?q=e (where e point to last page) thanks
0
votes
1answer
32 views

Converting .htaccess to nginx

RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*) p.php?id=$1 [L,QSA] How would I change that to work with nginx? Also, where do I place ...
1
vote
2answers
51 views

nginx redirect to www.domain

I want to redirect the site ALWAYS to www.site.com. However, I am not sure as to how to get the WWW to always show up in front should say someone type in the domain without the www. EDIT: server { ...
0
votes
0answers
22 views

Outgoing IIS URL Rewrite Rule

I have the following outgoing IIS URL rewrite rule: <outboundRules> <rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1" enabled="true"> ...
1
vote
2answers
156 views

How to configure apache as a reverse proxy with the remote server specified in a query string parameter

Problem: I'm trying to configure apache as a reverse proxy where the remove server is specified in a query string parameter. Let's say I'm serving a site at mywebapp.com. If you navigated to ...
0
votes
0answers
10 views

IIS URL mapped where

In IIS webserver logs is GET /css/default.aspx but the css directory is not on webserver, and there are lots of default.aspx files. How can you find out which file on disk is webserver's URL mapped ...
0
votes
2answers
45 views

How do I make RewriteCond %{HTTP_COOKIE} match a cookie value exactly?

How do I make my rule match an exact value of a cookie? I've tried: RewriteCond %{HTTP_COOKIE} ^its=me$ [NC] RewriteCond %{HTTP_COOKIE} its=^me$ [NC] RewriteCond %{HTTP_COOKIE} its="me" [NC] ...
2
votes
2answers
89 views

nginx case insensitive rewrite

I am trying to make my nginx redirects as clean as possible. I understand ~* is for case insensitive but I can only get it to work in example 2. Example 1 rewrite ^/foobar ...
0
votes
0answers
27 views

Redirect switcharoo - Apache

I'm having trouble making this or some variant of it work: <IfModule mod_rewrite.c> RewriteEngine On <DirectoryMatch "/home/.*/public_html"> RewriteRule /wp-login.php - [F] ...
1
vote
4answers
39 views

apache rewrite rules https to directory

I want apache to: redirect http users to https if they access http(s)://example.com/1234 redirect to /view/1234 I have tried different flavours but cannot get it work. When a user access the ...
0
votes
0answers
28 views

rewrite rule for nginx

I'm trying to change my nginx rewrite rule to a try_files but I'm not having any luck. My current config is: if (!-d $request_filename){ set $rule_0 1$rule_0; } if (!-f $request_filename){ ...
0
votes
4answers
143 views

Redirect url for Microsoft RD Web (Server 2012)

I have installed RD Web on the same web server as OWA and ECP (Exch 2013) console. All web applications are installed in the Default Web Site and Exchange Back End For OWA and ActiveSync my users ...
1
vote
1answer
66 views

URL rewriting between different pools with different authentication in IIS

I have an IIS application and three sub-applications as follows: CMT (Windows and Anonymously authenticated) - CI - EM - Website (Windows authenticated) CI and EM are helper web services and ...
0
votes
1answer
20 views

nginx rewrite in proxy_pass

I need proxing to different backend but whith same url, so rewriting thould be like this URL: http://myservrer.com/server/monitoring1?(parameters) REWRITE TO: ...
0
votes
0answers
23 views

Need Help for Ligthttpd Rewrite

I need to convert this rules in ligthttpd rules: RewriteEngine On RewriteCond %{REQUEST_URI} ^(.+)\~s$ RewriteRule ^(.*) stats.php?u=$1 [L] RewriteCond %{REQUEST_URI} ^(.+)\~d$ RewriteRule ^(.*) ...
0
votes
1answer
31 views

apache rewriterule for querystring parameters

The code below builds a url in this form. http://mysite.com/browse/department/?pid=1 and here is the rewrite cond and rule RewriteCond %{QUERY_STRING} ^pid=([0-9]+) RewriteRule browse/(.*)/$ ...
0
votes
1answer
47 views

apache simple rewrite rule or rewrite condition for query string

Im trying to add a rewrite rule to my htcaccess file and the part Im having trouble wth is the query string. I want to add the query string parameter pid to the rewrite rule. Both lines of code don't ...
0
votes
1answer
19 views

Rewrite not displaying image resources on web page

I have an Apache 2.4 server running on Windows 2008 R2 as a reverse proxy and I wanted to be able to display a page that shows that a server (one of the virtual hosts) is down for maintenance. After ...
0
votes
0answers
23 views

Apache mod rewrite, virtual host or both to map domain path of remote sever to local?

I have a PHP application on my server that my client wants to access with their domain. I have many of these so I will give a generic example: www.mydomain.com/app1/method1/function/args_string ...
0
votes
1answer
107 views

how to make a url rewrite rule exception?

I have a bunch of rewrite rules to redirect visits from domainX to domainY, however now I want show an index.html page when people visit domainX, but I still want all the other rewrite rules to apply. ...
0
votes
1answer
38 views

URL Rewrite and Masked Redirection

I have a site that is actually a tumblr account for a client. I need to set it to that: blog.foo.net actually redirects to blah.tumblr.com, while still using blog.foo.net. This would be simple using ...
0
votes
1answer
37 views

using nginx try_files and autoindex together

I have the following server configuration: server { listen 80; server_name _; root /var/www/; location /calendars/ { autoindex on; try_files $uri.ics $uri =404; ...
0
votes
2answers
38 views

Redirect only home page

I need to redirect only http://shop.test.com to http://www.test.com/fedex-orders/ Just homepage. Nothing else. ie http://shop.test.com/?page=blog should NOT redirect.
1
vote
2answers
54 views

Using several rewrite rules .htaccess

I have a website wich is based on a searchpage, which shows a list, and next is a detail page of the items. if visitors use rootdomain.com/searchterm, should be redirected to ...
0
votes
1answer
42 views

nginx rewrite only specific servername to https

It's about two subdomains. The first one (www) should be accessed via http. The second one (cloud) should be accessed via https. These are the relevant parts of my entries: server { listen ...
0
votes
1answer
30 views

apache rewrite syntax

Trying to block Google bot and others from accessing some of my sites. Thing is I have one box that has a ton of virtual host files that do nothing more than do a proxy pass to other servers. I would ...
0
votes
1answer
54 views

nginx url rewrite with string substitution

I need to catch if my urls contain a small substr, keep the url as it is and rewrite only that small part, how can I accomplish this? For example: http://foobar.com/foo-bar-substrtocatch-baz ...
0
votes
1answer
25 views

Convert rewrite rule from Nginx from Apache 2.2

I am trying to convert this Nginx rule: if ($args ~* ^file=(.*)$) { set $filename $1; add_header Content-Disposition "attachment; filename=$filename"; } so it ...
0
votes
2answers
96 views

Nginx Simplest Rewrite Querystring

I whould like this simple rewrite rule: /somefolder/mypage.aspx?myid=4343&tab=overview to be redirected to: /folder/4343/overview/ I looked for some solutions and none actually worked.. I ...
0
votes
0answers
26 views

Rewrite.dll and Application pool issues

is rewrite.dll part of IIS rewrite module? and another question is there any bugs that can make crash an App pool in IIS?if so what are those?
0
votes
1answer
32 views

nginx rewrite and Drupal

My web root is in /staging/ and I'm currently using this rewrite line: location / { # This is cool because no php is touched for static content try_files $uri @rewrite; } ...
0
votes
1answer
138 views

Cannot get simple nginx rewrite rule working in subdirectory

We are just migrating to nginx from Apache 2 and are having a few issues with some rewrite rules. The following is what used to work on Apache: RewriteEngine on Options +FollowSymLinks #RewriteCond ...
0
votes
1answer
40 views

How can I use Apache RewriteRules + PHP to determine which page to show?

I am trying to make a scalable RewriteRule on my .htaccess, I use each word before slash as a parameter. for example: http://localhost/mysite/param1/param2/param3/.../param20 I am working with this ...
0
votes
2answers
93 views

nginx rewrite rule to server images from subdomain?

I'd like all my images (jpg|gif|png) which currently being serversd from mydomain.com/files/ to be servered from a second machine which I've set up to server files from static.mydomain.com. I am ...

1 2 3 4 5 18