Top "Mod-rewrite" questions

URL rewriting module for the Apache web server.

How can I use htaccess to redirect paths with a wildcard character

I have a site I recently upgraded. The old site had a calendar that created hundreds of pages, on the …

.htaccess redirect mod-rewrite
using header() to rewrite filename in URL for dynamic pdf

I have a php script that generates a pdf report. When we go to save the pdf document, the filename …

php pdf mod-rewrite rename http-headers
What does RewriteBase do and how to use it?

I am trying to learn some .htaccess tricks. I came across the RewriteBase directive but could not get it to …

apache .htaccess mod-rewrite
mod_rewrite RewriteCond - is NC flag necessary for just domain part? And some more

I have seen many times in htaccess these type of rules : RewriteCond %{HTTP_REFERER} !^http://www.domain.it$ [NC] or …

regex .htaccess mod-rewrite case-insensitive
Proxying with SSL

I have a Linux host running Apache and a Windows host running IIS. I have a domain that points to …

mod-rewrite apache2 ssl-certificate virtualhost mod-proxy
.htaccess Remove WWW from URL + Directories

This seems to be a non-issue for many people (read: I can't find an answer), but I would like to …

.htaccess url mod-rewrite no-www
mod_rewrite: remove query string from URL?

I'm trying to make the following redirection (301) using .htaccess *?page=1 redirects to * (where * is a wildcard). Basically, I just want …

apache .htaccess mod-rewrite redirect
htaccess 301 redirect - Remove query string (QSA)

I've been struggling with some htaccess redirects. I just spent some time reading and searching on stack and couldn't get …

regex apache .htaccess mod-rewrite url-rewriting
Redirect all traffic to root of another domain

I have a domain that's not to be used anymore. I want to redirect all from http://www.old.com/ …

regex apache .htaccess mod-rewrite
Multiple RewriteRules for single RewriteCond in .htaccess

I have following command in my .htaccess RewriteCond %{HTTP_HOST} ^(www\.)?([a-z0-9-]+)\.example\.com [NC] RewriteRule ^(.*?)-([a-z]+) %2/$1.$2 […

apache .htaccess mod-rewrite