php - .htaccess not working properly on ubuntu server -


rewriterule    ^profile?$    profile.php    [nc,l] rewriterule    ^profile/?$    profile.php    [nc,l] rewriterule    ^profile/([0-9]+)/?$    profile.php?profile_id=$1    [nc,l]    # handle product requests rewriterule    ^profile/([0-9]+)/([a-z0-9a-z]+)/?$    profile.php?profile_id=$1&p=$2    [nc,l]    # handle product requests rewriterule    ^profile/([0-9]+)/([a-z0-9a-z]+)/([a-z0-9a-z]+)/?$    profile.php?profile_id=$1&p=$2&id=$3    [nc,l]    # handle product requests rewriterule    ^([a-z]+)/?$    index.php?p=$1    [nc,l]    # handle product requests 

when open

{url}/profile/{profile_id}  

the request going profile.php profile_id not accessible via $_request['profile_id']. other requests working properly.

can can possible reason?

try disabling multiviews option per @valdimirdimitrov's comment.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

node.js - Using Node without global install -

php - CakePHP HttpSockets send array of paramms -