.htaccess - clean url with htaccess not working -


i'm trying 'clean up' urls looking

http://www.smokescreencreative.co.uk/index.php?pid=graphicdesign 

to looking this

http://www.smokescreencreative.co.uk/graphicdesign 

i have tried using htaccess can't work, ideas or suggestions welcome. htaccess code i've tried below (the first line in file put there web host)

addtype application/x-httpd-php .php .html .htm   options +followsymlinks rewriteengine on  rewritecond %{script_filename} !-d rewritecond %{script_filename} !-f  rewriterule ^/(\w+)*$ ./index.php?pid=$1 

i have tried variations remove / after ^, ./ before index, . before index , * before $ none of these variations seem make difference.

thanks helps guys!

make sure links on in this

http://www.smokescreencreative.co.uk/graphicdesign 

and use code in .htaccess.

rewriteengine on rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^(.+)$ /index.php?pid=$1 [l] 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -