php - How to configure htaccess for localhost? -


i working on project maintenance where, need configure htaceess file run project on localhost, because have created virtual host run project.

i have following code -

rewriteengine on options +followsymlinks rewritebase /  rewritecond %{http_host} !^www\. rewriterule ^(.*)$ http://www.%{http_host}/$1 [r=301,l]  rewritecond %{https} on rewriterule ^(?!(text1|text2|text3)\.html|common-secure\.php|images\/|css-secure\/|javascript\/).* http://%{http_host}%{request_uri} [r=301]  rewriterule ^index.(.*)\.html$ index.php?langurl=$1&%{query_string} rewriterule ^index.html$ index.php?%{query_string} rewriterule ^city/(.*)\.(.*)\.(.*)\.html$ city.php?cityurl=$1&langurl=$2&page=$3&%{query_string}   #other rules 

i replaced last 4th , 5th line above following -

rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d 

but, still not able load js plugins. also, not getting query string parameters (like 'langurl') $_get.

what missing/went wrong here?

thanks.

you missing add directory of website in rewritebase

rewritebase /projectfolder/ 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -