Skip to content

Instantly share code, notes, and snippets.

@mikeunb
mikeunb / working .htaccess
Created March 15, 2013 16:44
working .htaccess
# SEARCH ENINGE FRIENDLY URLS FOR OR 2.5+
<IfModule mod_php4.c>
php_value session.use_trans_sid 0
</IfModule>
RewriteEngine On
Rewriterule ^index.html index.php
RewriteRule ^listing-(.*)-([0-9]*).html index.php?action=listingview&listingID=$2 [L]
RewriteRule ^page-(.*)-([0-9]*).html index.php?action=page_display&PageID=$2 [L]
RewriteRule ^search.html index.php?action=searchpage [L]
RewriteRule ^searchresults.html index.php?action=searchresults [L]
@mikeunb
mikeunb / .htaccess after first roots activation
Last active December 15, 2015 00:08
.htaccess before and after gravity forms
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>