php - how to modify .htaccess file to give QUERY_STRING? -


i have below htaccess file in website , working last 2 years. migrated server new hosting partner , seems not working expected. have confirmed server supporting mod_rewrite module. , see [query_string] => null ever url specify, , urls routing home page. can 1 tell need modify. saw lot many answers in stackoverflow , nothing worked me. begginer in htaccess file.

options +followsymlinks rewriteengine on options -indexes  # rewriting index.php index # rewriterule   ^index/?$   index.php  [nc]  # route pages # rewriterule   ^index/([{a-z}]+)/?$   index.php?$1  [nc,l]  rewriterule   ^index/home/([0-9]+)/?$   index.php?home&p_id=$1  [nc,l] rewriterule   ^index/page/([{a-z}{\-\}{0-9}]+)/?$   index.php?page&show=$1  [nc,l]  rewriterule   ^index/gallery/([{image}{video}]+)/?$   index.php?gallery&type=$1  [nc,l] rewriterule   ^index/gallery/([{image}{video}]+)/([0-9]+)/?$   index.php?gallery&type=$1&album=$2  [nc,l] 

if matching video or image there no reason have {video} { , }will match literally{video}`.

have .htaccess way:

options +followsymlinks -indexes -multiviews rewriteengine on  # rewriting index.php index # rewriterule ^index/?$ index.php [nc,l]  # route pages # rewriterule ^index/([a-z]+)/?$ index.php?$1 [nc,l,qsa]  rewriterule ^index/home/([0-9]+)/?$ index.php?home&p_id=$1 [nc,l,qsa]  rewriterule ^index/page/([a-z0-9-]+)/?$ index.php?page&show=$1 [nc,l,qsa]  rewriterule ^index/gallery/(image|video)/?$ index.php?gallery&type=$1 [nc,l,qsa]  rewriterule ^index/gallery/(image|video)/([0-9]+)/?$ index.php?gallery&type=$1&album=$2 [nc,l,qsa] 

Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -