Page 1 of 1

htaccess-for-search-engine-friendly-urls

PostPosted: 1:06am, Tue 24 Mar, 2015
by reinout
I'm using the lates version of PHPlist and installed it in a folder called 'mailer'. I want to create search engine friendly subscriber pages.



I used various codes I found , but nothing seams to work:

Code: Select all
RewriteEngine On
Options -Indexes
RewriteRule ^mailer/([^/]*)/$ /mailer/?p=$1 [L]
RewriteRule ^mailer/([^/]*)/([^/]*)/$ /mailer/?p=$1&id=$2 [L]


Code: Select all
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^([^/]+)/([^/]+) $1=$2&%1 [L]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)$ mailer?%1 [L]
Options -Indexes


Code: Select all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^([^/]+)/([^/]+) $1=$2&%1 [L]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)$ mailer?%1 [L]
Options -Indexes
</IfModule>


How can I get it to work ?