.htaccess - htaccess RewriteRule 404 Error -


i want change url

http://localhost/redhat/movbase-backbone/php/sql/movie.php 

into this

http://localhost/redhat/movbase-backbone/movie 

i tried creating rule in .htaccess file whenever go /movie 404 error.

here rule

rewriteengine on #rewritebase / rewriterule ^movie/?$ php/sql/movie.php [nc,l] 

i have tried changing movie.php out other files in order see if work , didn't problems.

is there wrong rule?

in .htaccess file located @ /redhat/movbase-backbone/.htaccess:

rewriteengine on rewritebase /redhat/movbase-backbone/ rewriterule ^movie/?$ php/sql/movie.php [nc,l] 

this assumes document root @ http://localhost/.

do want allow both movie , movie/?


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -