.htaccess to remove .php extenssion in not working -


before posting here i've tried solutions url1, url2 not fixed yet. .htaccess code this:

rewriteengine on rewritecond %{request_filename} !-f rewriterule ^([^\.]+)$ $1.php [nc,l] 

in application $_get , $_post used , file structure in htdocs this:

shopping ->(main folder) css(folder) images(folder) js(folder) .htaccess file1.php file2.php : : file9.php

so how can rid removing .php in url

  1. check .htaccess applied in first place — see here;

  2. make sure configuration allows overriding @ least fileinfo in .htaccess files (you may allowoverride all):

    <directory "/var/www/html">     allowoverride fileinfo </directory> 

    see this question details.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -