Problem creating clean (seo friendly) URL in php?
hi,
i'm trying create clean (seo friendly) url using php. far managed invoke script using url:
http://site.com/run/script.php/parm/valu
, extract parameters , values, following php function
$data = explode("/",$http_server_vars['path_info...
now, want rid of extension ".php" in url, , tried using forcetype command in .htaccess file, follows:
<filesmatch "^script$">
forcetype application/x-httpd-php
</filesmatch>
when reach script using browser
http://site.com/run/script
script doesn't execute, instead download box offering download file, indicating type of file application/x-httpd-php
(note folder "run" symbolic link.)
looks mime type php being recognized, odd reason script doesn't run...any appreciated.
hi, i'm trying create clean (seo friendly) url using php. far managed invoke script using url: http://site.com/run/script.php/parm/valu , extract parameters , values, following php function $data =...
Computers & Internet Programming & Design Next
Comments
Post a Comment