.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 -

excel vba - VBA Proxy auto-configuration for http requests -

php - phpWord - Tables with borders in headers/footers -