Top "Mod-rewrite" questions

URL rewriting module for the Apache web server.

ErrorDocument 404 /404.php is not working in .htaccess file in PHP

I have a .htaccess file in the root directory and also 404.php file there. Content of my .htaccess file is: …

php apache .htaccess mod-rewrite
Removing the .php extension with mod_rewrite

I want a mod_rewrite rule set, so I can refer to a page without the .php extension, but have …

apache mod-rewrite
Redirect to Apache built-in 404 page with mod_rewrite?

Is there a way to actively serve Apache's default, built-in 404 page for a number of URLs using mod_rewrite? Not …

apache mod-rewrite
How to enable mod_rewrite in LAMP on ubuntu?

I'm using Ubuntu 12.04 LTS linux on my machine. I've already installed LAMP on it. Now I want to enable the …

php mod-rewrite ubuntu ubuntu-12.04 lamp
mod_rewrite rule to redirect all requests except for one specific path

I'm trying to redirect all requests to my domain to another domain using mod_rewrite in an Apache 2.2 VirtualHost declaration. …

apache mod-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
How to Simulate & Test URL rewrite rule in Apache 2, when on sharehosting RewriteLog is disabled/unallowed in .Htaccess?

How to Simulate & Check a URL rewrite rule in Apache 2, when on sharehosting RewriteLog is disabled and or NOT …

apache mod-rewrite redirect url-rewriting apache2
Multiple RewriteConditions: How to chain them before a set of rules?

Q1: How to chain these two conditions making them if BOTH A AND B, then proceed... Q2: How to make …

apache url mod-rewrite apache2
Custom Error 403 Page PHP

I created a .htaccess inside a directory in which I don't want the files to be directly accessed. It works …

php apache .htaccess mod-rewrite http-status-code-403
Different folder as website subfolder

I need some help with URL rewriting. The case is similar with this one. I have a working Zend Framework …

apache wordpress zend-framework mod-rewrite virtualhost