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
0answers
6 views

IIS Web.Config implementation related issues

I am using IIS 7.5 Web Server with PHP and MySQL. I wanted to do as I mentioned below. www.mywebsite.com/user/shop.php?sid="GreenChilli" TO www.mywebsite.com/GreenChilli Below URL rewrite ...
-1
votes
0answers
15 views

Combining htacess files [on hold]

I have 2 separate htaccess and i need to combine them into one but im not sure how to do it. These are my htaccess: 1. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ...
0
votes
2answers
25 views

nginx rewrite if requst_uri contains some numbers

I'm having a little problem with some rewrite rules for a website. My permalinks are now something like domain.com/ID/permalink-ID.html The old structure of permalinks was ...
-1
votes
0answers
21 views

Map nginx Query String URL [on hold]

I have a webapp e.g example.com is mapped with some embedded url in nginx. server { location / { set $args id=201; try_files $uri $uri/ $uri/index.php /index.php; } } When I visit my ...
0
votes
1answer
23 views

nginx rewrite tld to match language of site

I have an issue with my nginx config for my joomla site. I want to rewrite/redirect based on the tld used. Example: domain.fr -> domain.com/fr domain.se -> domain.com/se How can I achieve this?
0
votes
1answer
50 views

Convert apache rewrite rules to nginx

I want to migrate an Apache setup to Nginx, but I can't get the rewrite rules working in Nginx. I had a look on the official nginx documentation, but still some trouble converting it. ...
-1
votes
0answers
22 views

Apache url rewrite to Nginx [duplicate]

i work on a little php platform and my server is nginx. The first version of this php site was developed for Apache server. I need to upgrade the site and to migrate it to nginx server. The problem ...
0
votes
2answers
18 views

RewriteRule Works With “Match Everything” Pattern But Not Directory Pattern

I'm trying to redirect newsletter URLs from my local server to an Amazon S3 bucket. So I want to redirect from: https://mysite.com/assets/img/newsletter/Jan12_Newsletter.html to: ...
2
votes
2answers
117 views

nginx rewrite regex for API versioning

What I want is for the first to be turned into the second.. /widget => /widget/index.php /widget/ => /widget/index.php /widget?act=list => ...
0
votes
0answers
30 views

iis reverse proxy: one default server and a fall-back

After spending dozens of hours to no avail, I am now asking for help with my IIS issue. I use IIS as a reverse proxy, which provides HTTPS encryption and authentication. The public site is, say, ...
-2
votes
1answer
33 views

Nginx rewrite rule not working

Can someone help me convert this rule? I have over 50 rules, but I can not make this rule work: #APACHE RewriteRule ^([^/]*)/([^/]*)\.html$ /?cmm=$1&page=$2 [L]
0
votes
1answer
77 views

IIS URL Rewrite - Redirect any HTTPS traffic to sub-domain

Our hosting environment dictates all secure traffic music travel over a particular sub-domain. We are using the .NET CMS Umbraco, which as far as I'm aware doesn't have any functionality to 'assign' ...
0
votes
0answers
40 views

Social Engine + Apache2 + Nginx Reverse Proxy [closed]

i'm trying to setup an apache2-Server on Ubuntu 14.04 (and Debian 7.6) with nginx as a reverse Proxy and varnish as a cache. Configuration so far: === NGINX ==== /etc/nginx/proxy_params ...
-2
votes
0answers
26 views

Redirect with mod_rewrite for apache web server [duplicate]

I have a sudomain app.example.com pointing to a directory named /app It contains a folder called uvf with an index.html file. I am trying to redirect all automatically generated links like ...
0
votes
0answers
6 views

IIS Global Input Options

Recently the site I was working on added language handling in this way: content tailored toward users of a certain language will have urls that start with baseUrl/[a-z]{2}-[a-z]{2}/... (I may be more ...
0
votes
1answer
33 views

Lighttpd splitting request URI and dropping query parameter

I'm running lighttpd 1.4.33, which is reverse proxied to from an Apache server that is open to the Internet. When accessing a script from the local address of the lighttpd server, GET parameters are ...
0
votes
0answers
14 views

Nginx won't allow specific subdirectory location to be proxy passed [duplicate]

I have a PHP server running my normal website. I'm also trying to run a nodejs site along side it in a specific subdirectory. The PHP site is using laravel so the config points to the public folder ...
0
votes
0answers
91 views

Nginx PHP index.php rewrite not allowing proxy pass to '/writing'

What I'd like: I want to have the laravel site show unless it's for /writing. In that case I want it to proxy pass anything in that subdirectory to a nodejs site. What happens: The laravel site ...
0
votes
1answer
59 views

htaccess and rewrite - Internal redirect within Alias

I have the following .htaccess within a subdirectory: RewriteEngine on RewriteRule ^file.js$ file.php This works by internally redirecting the request to the PHP file, with the same name, which is ...
0
votes
1answer
28 views

can htaccess file define different RewriteBase for production and dev servers

I have htaccess files that use different RewriteBase on production and dev (windows) pc. Currently I change the RewriteBase manually when deploying. Can this be done automatically with some ...
0
votes
1answer
28 views

How can I have users coming from the internet and a private WAN access the same web portal?

I am trying to configure access to a web portal hosted on a private WAN for internet users, originally the plan was to use split-DNS to resolve the hostname depending on what ip the client was coming ...
0
votes
0answers
47 views

Multiple Rewrite rules not working in htaccess file (mod_rewrite)

Can anyone help me how to write multiple rewrite rules in htaccess file. In my condition I want to remove index.php from url and also want to use file based cache busting, I am using following code in ...
0
votes
0answers
15 views

add a RewriteCond excluding url from RewriteRule [duplicate]

I have an existing .htaccess file with the following rewritecond: RewriteCond ${lowercase:%{SERVER_NAME}} ^.*hello.com$ RewriteCond ${lowercase:%{REQUEST_URI}} ^/(.*)$ RewriteRule ^/(.*)$ ...
-1
votes
1answer
15 views

How to set up tomcat7 to forward all requests to the appname?

I have a tomcat7 server hosting my app. I've got port forwarding set up with iptables so right now you can access the app like so: http://ip-address-of-server/appname I've also set up the domain ...
0
votes
1answer
20 views

IIS maintenance with client IP exceptions

I'm have no experience with IIS server, but I will have to perform site update. Is there an easy way to put maintenance page, which will be shown to all clients except ones connected from predefined ...
0
votes
1answer
29 views

How to use # in url as a redirect rule in htaccess for apache

I am having a difficult time figuring out how to have the following work: I am trying to redirect a url in htaccess I am trying to redirect from example.com/test.html to example.com/index#test I ...
-1
votes
1answer
31 views

IIS (or .htaccess) URL Rewrite not working correctly - need to capture number argument as query string

I'm trying to have: http://sub.domain.org/123456 become http://sub.domain.org/index.php?q=123456 I have tried many ways, and one way sort of worked, but then all subdirectories (including images) ...
0
votes
1answer
72 views

Howto rewrite URLs with two nginx as reverse proxies to gunicorn/Django

I have a Django application, deployed with gunicorn on port 8000, on a VM with a backend nginx, port 80, on the same VM. The nginx config is: location / { proxy_http_version 1.1; ...
0
votes
3answers
52 views

nginx rewrite location not found

in Nginx config file, did set rewrite location like below but do not work and every time return 404 not found, what is the problem here? server { listen 80; server_name mydomain.com ...
0
votes
3answers
42 views

How to remove hypen (-) using nginx rewrite rule?

I am using this rewrite rule to redirect example.com/a-b-c?id=learn-more ----> http://example.com/abc?id=learnmore rewrite ^/a-b-c?id=learn-More http://example.com/abc?id=learnMore permanent But ...
0
votes
1answer
53 views

redirect string to different url in nginx

I want to redirect a string to different URL in nginx. This what my vhost looks like and is working fine. server { listen 80; server_name secure.example.com; root /opt/tomcat/webapps/test/; ...
0
votes
2answers
24 views

Apache Rewrite URL

I had my document DocumentRoot set to www/fg. Before, I did browse to www/fg by typing http://www.mydomain.com/www/fg. Then, I set up VirtualHosts that point to www/fg. And now I just type ...
0
votes
1answer
31 views

How to modify querystring using URL rewriting?

I am having very less knowledge in URL rewriting, So not sure weather this can be done or not using URL rewrite? I have a URL like ...
0
votes
1answer
45 views

How can I rewrite from /page to /xx/page, using htaccess & apache only?

Hi I have found many resources on mod-rewrite and Apache but I haven't been successful of making a working example. The example below works for ✓ WORKS example.com/en/page1.php ☞ ...
0
votes
1answer
45 views

Using nginx to access internet through intranet

I don't know if I am going about this in the right way, but here's what I need to do. I have a website that's available on the internet. But I have some users who only have access to the intranet. I ...
0
votes
0answers
18 views

IIS7 Rewrite Rule for subdomains

I'm having trouble trying to figure out the proper syntax for a rewrite rule for subdomains in IIS7. I'm wanting to do the following: Change: www.anything.mydomain.com To: anything.mydomain.com ...
0
votes
1answer
67 views

Nginx rewrite, from htaccess-files

I've got a PHP-project set up in this directory tree: project v1 app (project files) public index.php (controller of app) documentation php files examples php files With "project" being ...
1
vote
1answer
73 views

Rewrite Location response header in lighttpd

I have an instance of lighttpd 1.4.35 listening for https traffic and reverse-proxying it to a back-end server. I.e., .----------. .----------. client ---https--> | ...
1
vote
1answer
37 views

ModRewrite combine sites to one

Hi I am having some issues configuring rewrites which have fairly complex requirements browsing (www.)A.com should => www.B.com browsing (www.)A.com/{anything}/blah/foo/yes should => ...
2
votes
5answers
202 views

Rewrite Rule: appending a path to URL

Update Thanks for all the replies so far. I'd like to make clear that the number after user (e.g. user1) in my example is not significant. The user can be any alphanumeric name. I want to make ...
0
votes
0answers
162 views

Windows 2008 IIS URL Rewrite not rewriting to index.php, Getting 404 Error instead

It is not an issue with web.config, I know this because I reinstalled IIS to fix an issue. But for completeness, here is my web.config: <?xml version="1.0" encoding="UTF-8"?> ...
0
votes
0answers
31 views

Rewrite/configure WebSVN location with MultiViews

I have configured mod_dav_svn 1.8.9 on FreeBSD along with WebSVN 2.3.3 this way: <Location /repos/svn> DAV svn SVNParentPath /usr/local/svn/repos SVNListParentPath On ...
0
votes
2answers
99 views

Nginx rewrite URLs but not static files

I need to rewrite URLs like http://www.domain.com/blog/wp-content/uploads/this-is-a-static-file.jpg to http://www.domain.com/wp-content/uploads/this-is-a-static-file.jpg I am using this rule: ...
0
votes
0answers
20 views

Wordpress permalinks on subfolder in iis7 not working

I have IIS 7.5. mod rewrite active. Currently, my wp site is inside subfolder. Here is web.config in my root folder : <rewrite> <rules> <rule name="site2.com" stopProcessing="true"> ...
0
votes
0answers
34 views

URL-Rewrite to One site But not the Other

We have our own domain and have several subdomains. One of the sites needs to be accessed only via SSL, but people are allowed to type http and still arrive there. The URL-Rewrite forces the http ...
0
votes
0answers
35 views

Configure IIS to rewrite all urls except HTTP POST uploads (formdata)?

Is it possible to have urlrewrite module rule in IIS to rewrite a request as long as it is NOT an HTTP POST upload (with formdata)? I believe post uploads have the content-type multipart/form-data, ...
0
votes
0answers
93 views

Apache rewriting sub domain URL with www prefix

My website is rewriting all subdomain links with www. for example news.example.com works fine, but if I go to news.example.com/wp-admin it will rewrite the URL to www.example.com/wp-admin ...
0
votes
0answers
16 views

How to redirect domain links in Apache reverse proxy setup? [duplicate]

I have sub.example.com that I want to load from example.com/sub. I've used a reverse proxy setup using mod_proxy and mod_proxy_html and it works fine. The problem is that I need to redirect all the ...
0
votes
0answers
12 views

Setting up .htaccess with various pages and query vars

I am wanting to set up multiple rules, and so the system can be expanded I am wanting to use %{REQUEST_FILENAME} rather than having multiple rules set up. My structure at the moment is: ...
0
votes
1answer
106 views

Nginx Rewrite Rule For File Within Folder Not Working

Good evening everyone or possible early morning if you are in my neck of the woods. My problem seems trivial but after several hours of testing, researching and fiddling I can't seem to get this ...