Top "Mod-rewrite" questions

URL rewriting module for the Apache web server.

PHP .htaccess -> pretty url (in reverse)

I know how to make URL's rewrite, for example: www.example.com/index.php?id=1&cat=3 to www.example.…

php mod-rewrite rewrite friendly-url
How to server static files + proxy context

I am wondering how to configure my httpd server to serves the following pages: My need is to serve static …

apache mod-rewrite reverse-proxy httpd.conf mod-proxy
Is it possible to use "%{HTTP_HOST}" in ProxyPass?

I'm trying to implement a transparent proxy using apache2 and mod_proxy that for now - doesn't do anything. just …

apache mod-rewrite apache2 mod-proxy proxypass
laravel trailing Slashes redirect to localhost

When I try this http://localhost/Testlaravel/public/users/login it works. But when I try http://localhost/Testlaravel/public/…

php regex .htaccess mod-rewrite trailing-slash
Where do I put RewriteRules in Apache2 without using .htaccess files?

I want to configure a mod_rewrite rule without using .htaccess files. When I put rules in .htaccess files they …

mod-rewrite apache2 virtualhost
Apache ErrorDocument absolute path

I'm trying to use the same 404 ErrorDocument for a domain and all its subdomains, The subdomains all have their own …

apache http mod-rewrite error-handling mod-alias
Remove .php extension (explicitly written) for friendly URL

htaccess to remove the .php extension of my site's files. RewriteEngine on RewriteBase / RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !…

php .htaccess mod-rewrite friendly-url
How to set the referer on a rewrite rule?

I have the following problem: I use a script that saves the referer URL. I want this URL to one …

apache .htaccess mod-rewrite http-referer referer
htaccess redirect URI to parent directory

I have a website hosted in /var/www/thesite (apache server), it's a Symfony2 website so inside this folder I …

apache .htaccess symfony mod-rewrite web-hosting
How do I use Apache mod_rewrite rewritecond with POST parameters?

I know I can inspect GET query string parameters in rewritecond as follows: RewriteCond %{REQUEST_URI} ^/somepath/somepath RewriteCond %{REQUEST_…

apache mod-rewrite mod-security