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
37 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
43 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
41 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
28 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
19 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
28 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
24 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
17 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
10 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
12 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
votes
0answers
10 views

First request to IIS Rewrite URL takes very long to process but application pool recycle ruled out for cause

I have IIS setup to serve a handful of ASP .NET applications and PHP websites and all of them have been configured with proper time-outs and application pool recycle times and are working ...
1
vote
1answer
22 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
36 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
48 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
16 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
44 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
27 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
29 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
15 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
30 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
24 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
59 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
20 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
23 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
34 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
7 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. ...
0
votes
1answer
24 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
0answers
76 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
33 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
27 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
20 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
43 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
34 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
27 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
42 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
32 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
26 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
20 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
14 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 ...
0
votes
0answers
11 views

IIS rewrite fails to append back-reference

In IIS, I'm trying to redirect a non-existent subdomain to a url, and include the remainder of the url in the redirection. For example: blog.abc.com/blah/blah/blah should go to: ...
0
votes
1answer
31 views

IIS URL Rewrite and Reverse Proxy

I have a reverse proxy rule that forwards all requests to a specific subdomain to an internal server and everything works great. <rule name="cloud.domain.com" enabled="true" ...
1
vote
1answer
37 views

Nginx reverse proxy gives 404 with static content requests

Our setup is two servers: One serves WP installation The other one is used for extra custom functionality. Server 1 that hosts WP is using Nginx as web server and reverse proxy to Server 2. In ...
0
votes
0answers
25 views

Nginx URL rewrite / mask

Currently, my $_GET parameters are ordered alphabetically (a, b, c, d, etc...) For example: https://domain.com/?a=Menu1&b=Menu2&c=Menu3 What I want is this URL: ...
0
votes
1answer
24 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: ...
0
votes
0answers
21 views

Custom rewrite rule - migationg to WordPress CMS

I am trying to move my image gallery site from one CMS to Wordpress. On current CMS I have page with medium size image on it with URL: ...
0
votes
1answer
66 views

NginX Causing PHP File To Be Executed Twice

I'm between a rock and a hard place trying to figure out why this is going on. For some reason, when I open my website the index.php file is being executed. I have been able to narrow it down to ...
0
votes
0answers
22 views

nginx rewrite subdomain to other subdomain

I have a atlassian server with the following config: server { listen 443; server_name servicedesk.example.nl; ssl on; ssl_certificate certs/jira.cer; ssl_certificate_key ...
0
votes
1answer
27 views

URL Rewrite issue

I'm a newbie on this and need some help on creating a rule to rewrite http://dev.test1.com/sub1 to http://dev.test2.com/sub1 as shown below. <rule name="Route the requests for sub1" ...
0
votes
0answers
19 views

Nginx, rewrite css file requests to default css file

I'd like that all requests to a certain location would get rewrited to a default file in that folder, in Nginx. The requested files don't exist in that folder. I tried this: location ...