Top "Rewrite" questions

A URL rewrite engine is software that modifies a web URL's appearance (URL rewriting).

.htaccess RewriteRule to preserve GET URL parameters

I'm having issues keeping the parameters of the url working after an htaccess url rewrite. My htaccess rewrite is as …

php .htaccess parameters rewrite
logging proxy activity in nginx

I am using rewrite and proxy_pass and I am having some intermittent issues with the site I am proxying …

logging proxy nginx rewrite
"OR" Flag in .htaccess mod_rewrite

Just found this .htaccess rewrite code RewriteEngine on RewriteCond %{HTTP_HOST} ^my.domain.com$ [NC,OR] RewriteCond %{REQUEST_URI} !public/ …

apache .htaccess mod-rewrite apache2 rewrite
Nginx rewrite non-www-prefixed domain to www-prefixed domain

I see the Nginx HttpRewriteModule documentation has an example to rewrite a www-prefixed domain to a non-www-prefixed domain: if ($host ~* …

nginx rewrite url-rewriting
Haproxy route and rewrite based on URI path

I am trying to setup an Haproxy to load balance requests on a few backends identified by the uri path. …

regex path rewrite load-balancing haproxy
nginx rewrite WITHOUT change url

I want to use rewrite function in my nginx server. When I try "http://www.example.com/1234", I want to …

nginx rewrite
Apache 301 Redirect and preserving post data

I have implemented SEO URLs using Apache 301 redirects to a 'redirect.cfm' in the root of the website which handles …

apache rewrite http-post http-status-code-301
Remove parameters within nginx rewrite

I'm rewriting URLs in nginx after a relaunch. In the old site I had query parameters in the URL to …

get nginx rewrite
Modifying a Location header with nginx proxy_pass

I have an nginx proxy_pass setup to pass every request on /api through to a backend Tomcat REST service. …

regex nginx header rewrite proxypass
Preserve HTTP/HTTPS protocol in .htaccess redirects

I have to redirect port 80 to 2368 in htaccess but I'd like to keep the requested protocol intact so that SSL …

.htaccess mod-rewrite rewrite