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)

2
votes
2answers
73 views

iis7 rewritebase for portions of website (wordpress)

We are slowly converting our existing website to a wordpress platform. I currently have 3 directories set up in a subdirectory but these need to look like they are in the site root. Example: the old ...
0
votes
1answer
18 views

Having twice a “location / {}” block in nginx

For all our sites we have an include file which contains several things, amongst this line: location / { try_files $uri /index.php?$query_string; } For a single site, we do want to redirect ...
0
votes
1answer
20 views

Server, Database or Code Issue? Magento backend rewrites itself with a index.php which doesnt work

I will be honest and admit my cross posting in magento.stackexchange.com but the reason is that I believe it is a server fault, and now I am looking for proof to present to my dreaded hosting ...
0
votes
1answer
610 views

URL Rewrite in IIS7 Web Service - WebService.asmx => WebService in the SOAP doc

I have an IIS7.5 (Server 2008 R2) based web service that I would like to make as independant on the current implementations technology as possible. I am using the URL rewrite module ...
-3
votes
0answers
20 views

CentOS 6 64Bit For DNS for my domain [migrated]

Entries in DNS (named) are like www A 1.1.1.1 mail A 2.2.2.2 Well I am using wordpress in www.mydomainname.com now I have www.mydomain.com/?pageid=16 used for blogs so I want to add a entry in ...
0
votes
2answers
37 views

nginx: How to redirect root to subdirectory while maintaining URL in the address bar

I have an nginx setup with folder structure like this: - www |- splash |- blog www is the root folder. I would like to redirect users who access http://mysite.com to the splash folder. But I don't ...
0
votes
0answers
25 views

Is there a way to get a password from HTTP authorization header in mod_rewrite (apache2)

I'd like to parse HTTP authorization header in mod_rewrite - to be able to use login and password for another redirect. I want to achieve something like this: user puts ...
1
vote
1answer
2k views

Helicon ISAPI Rewrite is processing Rewrite Rules for httpd.conf but not .htaccess

We have Helicon ISAPI Rewrite 3 installed on our Windows 2003 Web server. The RewriteRules work fine in the global file located in the httpd.conf file. The server serves several Web sites and we ...
0
votes
1answer
23 views

Tomcat / httpd URL Mapping

My application is running in Tomcat. If you go to http://realtimerater.com:8080/rtrSite it all works perfectly. I'm trying to get it to work for realtimerater.com. I tried to use the example that was ...
0
votes
0answers
29 views

Why nginx rewrite throws out 404 Not Found?

The ubuntu 12.04 server throws out 404 Not Found error when entering mysite.com/nbhy. Here nbhy is a symlink under root /var/www/ pointing to /var/www/nbhyop/current/public. Here is server block in ...
0
votes
0answers
14 views

Trailing slash added when symlink matches directory name

I have a rule which rewrites my shop url (http://mydomain.com/shop) to a symlink (/var/www/shop). I've noticed that if the url subdirectory matches my symlink name (shop/shop), Apache enforces a ...
0
votes
0answers
17 views

Rewriting one subdirectory to another

I'm having great difficulty in rewriting my shop domain to my Magento subdirectory. Here's what I'm after: http://mydomain.com/shop/ -> /var/www/magento/ http://mydomain.com/shop/anyFile.php ...
2
votes
2answers
872 views

URL Rewriting Problem

I'm trying to rewrite my URL's subdomain. http://username.domain.com will show content of http://www.domain.com/user.php?u=username but URL stay as http://username.domain.com . (I mean url masking) ...
0
votes
1answer
598 views

Mask URL part while proxying Tomcat webapp through Nginx

I've got the webbapp at the server 1.1.1.1:8080/AppName/ Now I need to hide port and AppName dir URL part. So I installed Nginx on server 2.2.2.2 with virthost name test.com. Here is the virthost ...
0
votes
1answer
22 views

Error in rewrite uri with nginx

Here is the error we have when loading nginx on ubuntu 12.04 server: nginx: [emerg] invalid number of arguments in "location" directive in /opt/nginx/conf/nginx.conf:58 What we are trying to do is ...
0
votes
1answer
1k views

Nginx Rewrite rules for clean URLs

I want to write nginx rewrite rules for clean URLs. Everytime the user hits http://domain.com/abc/12/16/abc-def-ghi I need to execute domain.com/abc.php?a=12&b=16&c=abc-def-ghi. Now my ...
-1
votes
0answers
15 views

nginx configuration for WordPress not working

I have a problem with my nginx rewrite configuration for WordPress not working. Running nginx 1.2.6 on Ubuntu 13.04. This is my current configuration: default.conf listen 0.0.0.0:8081; index ...
0
votes
0answers
13 views

Apache | mod_rewrite | RewriteRule

I am migrating a web site from a Windows Server into a Apache and I like to redict some 404 URLs to correct/equivalent URL in my new server. What I like to do is to make the following sorten by using ...
0
votes
0answers
18 views

IIS8 redirect rule fails 400 bad request AFTER it successfully matches request and comes up with a valid redirect

I have a url that looks like this: /saws-table-saws/table-saws/fay%20%2526%20egan My redirect rule looks like this: <rule name="46"> <match url="^saws-table-saws/table-saws(.*)" /> ...
0
votes
1answer
19 views

Nginx Rewrite with a question mark

I am trying to force Nginx to redirect/rewrite one URL that uses a query string /?cat=20 to /category/lighttpd/. Here is what I tried, which is not working: location ~ /\?cat=20 { rewrite ^ ...
1
vote
1answer
907 views

iis7 url rewrite (remove .aspx) and getting error 404

I have an issue with IIS7 url rewrite module, when I add following rule I get an 404 error on all pages. <rule name="Remove .aspx" stopProcessing="true"> <match url="(.+)\.aspx" /> ...
2
votes
1answer
320 views

ARR reverse proxy outbound rewrite rule for redirections

I'm currently trying to put together a proof of concept on mixing various technologies onto one web site in order to ease migrations and add flexibility. The idea is to create one 'mashup' site behind ...
1
vote
3answers
55 views

Apache rewrite http request to https

I have an apache server v2.2, with a virtual host on 80 and another with SSL on 444. I would like to redirect all this kind of request: http://domain.tld:444/dir1 http://domain.tld:444/dir2 ...
0
votes
3answers
711 views

Serving images from another hostname vs Apache overload for the rewrites

We are trying to improve further the speed of some sites with older HTML in order as well to obtain better SEO results. We have now applied some minify measures, combined html, css etc. We use a small ...
0
votes
1answer
1k views

How to hide subfolder when using Web.config for subdomains?

I have FTP access to my ASP.NET Websapce (IIS 7) and I route subdomains with a Web.config in the web root folder. She looks like this: <?xml version="1.0" encoding="UTF-8"?> ...
2
votes
3answers
1k views

lighttpd config and rewriting/disabling attempts to access favicon.ico

I've got lighttpd and apache working together on an app I'm building. lighty is serving out static content. However, each time a static asset is requested, I see a not found: favicon.ico message in ...
0
votes
1answer
27 views

After rewriting, nginx doesn't use php-fastcgi

I'm having trouble with an nginx rewrite. I want to rewrite ^(.*?)/(.*?)/?$ to controllers/$1.php?action=$2. This worked for me on an Apache server earlier. After that, I want to route that file to ...
0
votes
0answers
15 views

IIS ReWrite match pattern needs to bind to the host domain

I have a two sites that are hosted under a single root domain (hense single web.config), and I need an IIS rewrite rule that will work across both of them. Here is my basic setup: Site 1 - base url = ...
0
votes
1answer
614 views

Cross domain javascript form filling, reverse proxy

I need a javascript form filler that can bypass the 'same origin policy' most modern browsers implement. I made a script that opens the desired website/form in a new browser. With the handler, ...
-1
votes
1answer
16 views

URL redirection [duplicate]

I have set up a ubuntu server with apche 2 installed, I already have a windows server 2003 installed with Zywall firewall installed, I successfully started Apache2 in Ubuntu server and it is running, ...
1
vote
0answers
16 views

Nginx and If-Modified-Since/If-None-Match headers

Anyone know how to rewrite this apache rule for Nginx? RewriteRule .* - [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}] RewriteRule .* - [E=HTTP_IF_NONE_MATCH:%{HTTP:If-None-Match}] Thanks
0
votes
0answers
21 views

Yet Another Apache Rewrite Issue - Not working at all

I've gone through some troubleshooting to try and figure this out but it's driving me mental. Basically, mod_rewrite sucks a fat one and I can't get the goddamn thing to work correctly even when ...
2
votes
1answer
655 views

htaccess: how to rewrite to clean urls and redirect old urls to the new clean ones?

With htaccess I'm trying to make my sites urls clean. I use very basic urls like: www.mysite.com/pagename.php ("pagename" is variable). I want www.mysite.com/pagename to display the content of ...
3
votes
1answer
37 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/ ...
0
votes
1answer
20 views

Problems with Rewriting URLs having fcgid enabled

First some information about my server: Apache2 Version: 2.4 Modules: php5 : disabled; rewrite : enabled; suexec : enabled; fcgid : enabled; Php Version: 5.3.3 I am currently creating a website ...
0
votes
2answers
312 views

nginx rewrite mystery - duplicating hostname and losing https

I am replacing lighttpd with nginx on my development server. I got it working with PHP and SSL, but I'm stumped by what should be a simple rewrite. I need to rewrite URLs from ...
-1
votes
4answers
2k views

NGINX redirect subdomain to sub directory [closed]

I know this must have been answered a million times but I can't seem to get it to work I would like to redirect a subdomain to a subdirectory. I am currently using server { server_name ...
0
votes
1answer
55 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 ...
-2
votes
1answer
18 views

How do I get apache 2 to serve up home directory? [closed]

I have a domain name I have registered and it is currently showing the Apache 2 Test Page from the /var/www/html/ directory, I was wondering how I can get it to point to a home directory instead ie: ...
2
votes
1answer
2k views

How to exclude a sub-folder from HTaccess RewriteRule

I have WordPress installed in my root directory, for which a RewriteRule is in place. I need to password-protect a subfolder ("blue"), so I set the htaccess in that folder as such. Problem is that ...
-1
votes
1answer
67 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 ...
1
vote
1answer
32 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 ...
3
votes
2answers
162 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
43 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
19 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
28 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
50 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
28 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
22 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
39 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 ...

1 2 3 4 5 19