linux - URL Rewritng on local Ubuntu server is not working -
recently have installed ubuntu 12.10 on system. installed apache 2.0, php,mysql,etc. enabled url rewriting "sudo a2enmod rewrite". edited configuration file change allowoverride none allowoverride all.
here .htaccess file
rewriteengine on # turn on rewriting engine^m rewriterule ^blog?$ blog.php?p=$1 [nc,l] rewriterule ^blog/([a-z0-9a-z]+)/?$ blog.php?p=$1 [nc,l] rewriterule ^appstore?$ appstore.php [nc,l] rewriterule ^appstore/([a-z0-9a-z\--]+)/?$ rewriterule ^([a-z]+)/?$ index.php?p=$1 [nc,l] ideally, site-url/blog should display result of blog.php, site-url/appstore should display result of appstore.php and rest should display result of index.php. not getting desired result. can problem?
p.s : earlier testing application on windows 7 xampp server , working perfectly. working prefectly on amazon ec2 instance have installed ubuntu 12.04.
you might have option multiviews enabled. disable using line @ top of root .htaccess:
options -multiviews
Comments
Post a Comment