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
87 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
190 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
422 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
131 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
69 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 ...
-1
votes
1answer
1k 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
20 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
296 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
947 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
82 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
153 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
29 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
122 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
365 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
144 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
1answer
76 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
128 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
1answer
1k 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
150 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
1answer
69 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
1answer
256 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
1answer
42 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
1answer
104 views

Nginx mutliple rewrite rules per location

I've got a working nginx rewrite for a location, but in the case of a specific request I want to rewrite to a different location. location /api { if (!-e $request_filename){ rewrite ...
0
votes
1answer
562 views

Cache header for dynamically created url

I have a PHP script that generates a thumbnail based on an existing path (more info). The basic idea is this: Given the document root /web/, an image lives in /web/images/foo.jpg. When a predefined ...
0
votes
1answer
1k views

nginx url rewrite rule

I'm doing a migration from a WordPress blog to a Jekyll Blog using NGINX as my HTTP server and I don't want to break the Internet by leaving some URL's not working as expected. I got to a point where ...
2
votes
2answers
3k views

How to check if mod_alias is enabled?

I want to try mod_alias instead of mod_rewrite for a couple of simple redirect rules, but the directives don't seem to be working when entered in .htaccess. Is it possible that mod_alias is not ...
0
votes
1answer
858 views

use .htaccess to change the url example.com/mobile to m.example.com

I have am setting up a social network script, it has both a desktop and a mobile version of the site. When a mobile device tries to browse the site, the mobile page is served with the url ...
1
vote
1answer
55 views

RewriteRule preserving path across environments [duplicate]

I'm trying to come up with some redirect rules that'll work on my local working directory and production. The problem being my local dev env works via "localhost/exp" where as the production works ...
1
vote
1answer
211 views

Can't find IIS Rewrite Rule in Config XML

I created a new URL rewrite rule through the IIS manager GUI. But when I browse to the site config XML file, I don't see any rewrite rules even though I have confirmed the rewrite is working. I had ...
0
votes
1answer
68 views

nginx rewrite single php page

I am really struggling to understand and achieve a very simple operation in nginx. I'm trying to rewrite the following page: http://test.domain.com/prova_pagina.php to http://test.domain.com/p/ ...
0
votes
1answer
118 views

StatusWolf 0.8.8 GUI issues: '/undefined/' in URL path as found in Apache access log

I've just installed StatusWolf 0.8.8 on Ubuntu 12.04, running Apache 2.2.22 with PHP 5.4.23. I had retrieved the latest Git source using: git clone https://github.com/box/StatusWolf.git and ...
2
votes
1answer
2k views

Nginx & PHP-FPM - Unable to open primary script ERROR

I have a blog with some rewrite rules when in comes to viewing single posts. The viewing is handled by a file named view.php. I am using some rewrite rules in my vhost config as follows: location ...
0
votes
0answers
59 views

issues redirecting apache site in HTTPS

I have a web site running on apache2 where I needed to implement a few redirects. They are fairly basic, but I am having problems on a specific part. I need the following redirects to properly ...
0
votes
1answer
439 views

Trouble converting .htaccess rewrite rules for nginx

Hi all I am trying to convert the following .htaccess code <IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond ...
0
votes
1answer
2k views

NGINX - url rewrite regular expression

I have the url such as example.com/page.php?username=test. I want to rewrite this url into something like: example.com/test only if test follows the following regual expression: ...
0
votes
1answer
484 views

IIS7 URL rewrite - Path has question mark (not query string)

I need to redirect this: http://www.example.com/?/careers/ to this: http://www.example.com/jobs/ But IIS7 URL rewrite does not recognize the question mark, even if I try to escape it. Is this ...
1
vote
0answers
95 views

Setting up nginx, rewrite and fastcgi

This problem has been driving me nuts for the last couple of days... Working on an application that needs authentication and exists of different parts (CMS, API, frontend) we ran in to some problems ...
1
vote
0answers
61 views

How to convert RewriteCond rules so they work in Lighttpd?

How can I convert this Apache rewrite rules so they work on Lighttpd? This is in fact a .htaccess file, and I need to put those in a lighttpd.conf file. Options +FollowSymLinks RewriteEngine on ...
1
vote
2answers
80 views

How to use mod_rewrite to abstract get request with subdomains

I've been at this all day and I thought I had a handle on regular expressions but I'm no longer confident that I do. I've searched all over, read through some horrible guides on mod_rewrite and I'm ...
-1
votes
1answer
305 views

Howto urlrewrite for subdomain in IIS 8

I have 2 domains on server2012, IIS8 www.abc.com and www.xyz.com mailenable works like this way: www.xyz.com/mewebmail I want users to access their mails like that: webmail.abc.com this means I ...
1
vote
1answer
435 views

Issue when redirecting a folder using IIS url rewrite

Using Url Rewrite, I'm trying to redirect /foo_bar/* to /foo/*. I've tried this: <rule name="Redirect foo_bar to foo" stopProcessing="true"> <match url="(.*)" /> <conditions ...
2
votes
0answers
101 views

Weird nginx configuration: multiple rewrite rules doesnt work

I have an application which knows how to prepare some special images and its running on a separate machine (i'm trying to use it as image server). When these images are prepared and served by ...
0
votes
1answer
932 views

Ngnix Rewrite - If URL contains

I'm having a small issue - my error log is filling up with requests to a directory folder on my site (but with added data that shouldn't be there). http://example.com/the-directory/undefined ...
1
vote
0answers
177 views

Rewriting a proxied upstream

I have a server which serves LuCI for me on localhost:8080. I'm trying to proxy to it via nginx, but I'd like to rewrite the URLs so that instead of https://myserver/cgi-bin/luci, I have ...
0
votes
1answer
54 views

Redirect in nginx with extracting params from the url

I have a very long url's like: https://mydomain.com/post/api/v5/apps/123/events/viewitem?data={"h_Authorization":"Basic ...
1
vote
0answers
254 views

Getting error 500.52 when creating reverse proxy with url rewrite

I have used the following technique for achieving Url rewriting. http://weblogs.asp.net/owscott/archive/2013/10/24/creating-a-reverse-proxy-with-url-rewrite-for-iis.aspx However i am getting the ...
0
votes
1answer
881 views

nginx reverse proxy fix remote url

I have a wordpress site on different machine behind nginx reverse proxy. The remote host is 10.0.1.1/kehitys/testi/wordpress and I would like to serve this out as www.host.com/. Is there some way to ...
0
votes
1answer
320 views

NGiNX and MediaWiki rewrite regular expression

I am having some problems with regular-expression with rewrite in NGiNX. Here is my config: location /wiki/ { rewrite ^/([^?]*)/([^?]*)(?:\?(.*))? /$1/index.php?title=$2&$3 last; ...
0
votes
4answers
4k views

How to redirect or rewrite IIS site with port in URL to URL without port?

I'm not 100% sure if this is the right part of StackOverflow to post this but to me it made the most sense. Sorry if its not! Currently I have a site in IIS configured on HTTPS with port 7500. I can ...
0
votes
0answers
38 views

Nginx rewrite to fixed destination link

I would like to rewrite all incoming links to a fixed destination link. Any arguments and URI paths should be dropped, so http://domain1.com/blah/blah.html?test=3&test2=4 should always become ...