Skip to content
This repository was archived by the owner on Dec 12, 2023. It is now read-only.

mod_rewrite rules in htaccess

Sven Seeberg edited this page Feb 1, 2019 · 5 revisions

The rewrite rules in the .htaccess file are different than the default Wordpress file. We want to redirect all page URLs to our web app located at https://integreat.app, while resources in the wp-content/uploads and other directories should be accessible.

A good tool to test mod_rewrite rules is available at https://htaccess.madewithlove.be/. Additionally, for debugging purposes, change the log level in the /etc/apache2/apache2.conf to LogLevel warn rewrite:trace3.

Test URLs

This is a list of URLs that can be used to validate the rewrite rules in the .htaccess:

Clone this wiki locally