.htpasswd - is it possible to change URL of webpage using .htaccess and also want to protect folders using .htaccess? -


i want change webpage url http://www.xyz.com/in/index.php?mpid=page1 http://www.xyz.com/in/page1 using .htaccess.

and want protect folders username , password.

authtype basic authname "protected area" #path htpaswd authuserfile /path/to/.htpasswd require valid-user  rewriteengine on rewritecond %{request_uri} !^in rewriterule /in/(.+) in/index.php?mpid=$1 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -