Hi, I have urls that look like 'mysite.com/48YSWD96', however I need to be able to write them as urls that look like 'mysite.com/?d=48YSWD96' and still have them go to the same place. My .htaccess code looks like this:
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^([^/]+)/$ $1.php
RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ /$1/ [R=301,L]
RewriteBase /
I hope that was clear. What do I need to add? any help is much appreciated, thanks.