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

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -