Top "Mod-rewrite" questions

URL rewriting module for the Apache web server.

apache mod_rewrite is not working or not enabled

I have installed rewrite_module and modified php.ini on Apache. I create rewrite.php and .htaccess files, but it's …

apache mod-rewrite
how to use "AND", "OR" for RewriteCond on Apache?

Is this how to use AND, OR for RewriteCond on Apache? rewritecond A [or] rewritecond B rewritecond C [or] rewritecond …

mod-rewrite apache-config
How do I ignore a directory in mod_rewrite?

I'm trying to have the modrewrite rules skip the directory vip. I've tried a number of things as you can …

apache mod-rewrite
$ service apache2 restart [fail]

I have installed Apache on my Ubuntu Server. For a special reason I have to enable mod_rewrite on it. …

apache mod-rewrite
.htaccess not working (mod_rewrite)

I have not having any luck getting my .htaccess with mod_rewrite working. Basically all I am trying to do …

linux apache mod-rewrite
Rewrite rule if condition is not matched

How may I perform a rule if the URL is NOT matching the path "forums"? For example: RewriteCond IF URL …

apache mod-rewrite
How can I use an .htaccess file in Nginx?

I am currently migrating my website from Apache to nginx, but my .htaccess file is not working. My website is …

apache .htaccess mod-rewrite nginx
.htaccess rewrite GET variables

I have a index.php which handle all the routing index.php?page=controller (simplified) just to split up the …

php .htaccess mod-rewrite
Best Practice: 301 Redirect HTTP to HTTPS (Standard Domain)

I have been searching for the perfect 301 redirect. But I am finding so many solutions and do not know what’…

.htaccess mod-rewrite redirect https url-redirection
.htaccess Rewrite to Force Trailing Slash at the end

I have the following code in my htaccess file: # Force Trailing Slash RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^[^/]+$ %{REQUEST_URI}/ [L,…

.htaccess url mod-rewrite