Redirect non-www to www in .htaccess

Change your configuration to this (add a slash): Or the solution outlined below (proposed by @absiddiqueLive) will work for any domain: If you need to support http and https and preserve the protocol choice try the following: Where you replace login with checkout.php or whatever URL you need to support HTTPS on. I’d argue this is a bad idea though. … Read more

Server unable to read htaccess file, denying access to be safe

I have created a simple app using AngularJS. When I tried to host that project in my website http://demo.gaurabdahal.com/recipefinder it shows the following error: Forbidden You don’t have permission to access /recipefinder on this server. Server unable to read htaccess file, denying access to be safe But if I go to http://demo.gaurabdahal.com/ it displays “access … Read more

.htaccess deny from all

is an .htaccess command(the actual content of that file you are trying to view). Not a denial of being able to edit the file. Just reopen the .htaccess file in the text viewer of choice and make the alterations as you so desire, save it, then reupload it to your folder of choice. Though I … Read more

CodeIgniter removing index.php from url

Try the following Open config.php and do following replaces to In some cases the default setting for uri_protocol does not work properly. Just replace by .htaccess Note: .htaccess code vary depending on hosting server. In some hosting server (e.g.: Godaddy) need to use an extra ? in the last line of above code. The following line will … Read more