.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

php - Using str_replace to translate a MySQL Table in html -

SQL Server - MyCTE query based on 24 hour period (next day) -

asp.net mvc - Cannot display error message on Editor or EditorFor -