Good Evening All,

I'm getting just a little challenge with b .htaccess file which i was wishing a number of you'd have the ability to assist me to with. The very first statement that people are spinning (that rewrites this site to ensure that the index.php is taken away) - Statement One - functions perfectly so you will find no difficulties with that, however, if I attempt and take away the ?ID= from listing?ID=title it doesn't appear to wish to operate. The statement which for whatever reason doesn't function is attached in Statement Two.

Statement One

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !(index\.php)
RewriteRule .* index.php [L]

Statement Two

RewriteEngine on
RewriteRule ^listing/(.*) listing?ID=$1 [PT]

Any help that anybody would have the ability to offer could be greatly appreciated.


You don't have to to show around the rewrite engine again.

I am unsure basically understand you properly, but out of your text I gather you need to turn listing?ID=123 into listing/123, right?

For the reason that situation you'll need the rewrite rule the opposite way round. This will work:

Options +FollowSymlinks
RewriteEngine On
RewriteCond %{QUERY_STRING} ID=(.+)
RewriteRule ^listing(.*) /listing/%1 [QSA]