apache - .htaccess help, not working when I changed servers -
apache - .htaccess help, not working when I changed servers -
i not familiar .htaccess , have searched through net couldn't find explanation have
rewriteengine on directoryindex index.php rewriterule ^([a-za-z0-9_-]+)$ index.php?mpage=$1 rewriterule ^([a-za-z0-9_-]+)/$ index.php?mpage=$1 rewriterule ^search-result/([^/\.]+)$ index.php?mpage=search-result&subpage=$1 [l] rewriterule ^search-result/([^/\.]+)/(.*)$ index.php?mpage=search-result&subpage=$1&act=$2 [l] rewriterule ^online-result/([^/\.]+)$ index.php?mpage=online-result&subpage=$1 [l] rewriterule ^online-result/([^/\.]+)/(.*)$ index.php?mpage=online-result&subpage=$1&act=$2 [l]
this .htaccess building, worked before on godaddy server when changed server, wont work more.
let http://www.mywebsite.com/home
worked before, because if can see mpage=$1
replaces 1 on slash right? when alter servers see 404 error.
any ideas be?
make sure have apache rewrite module enabled, , allowoverride set in vhost config
apache .htaccess mod-rewrite
Comments
Post a Comment