How to remove index.php from WordPress site URL

Go to your WP-ADMIN–>Settings–>Permalink and use the permalink structure change there, if it generate any .htaccess file copy the content and update your .htaccess file. Or Check if your hosting mod_rewrite is enable by creating a file phpinfo.php with content, Upload this file and browse via Browser. So you know which modules are enabled. You … Read more

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

How do I disable directory browsing?

Create an .htaccess file containing the following line: That is one option. Another option is editing your apache configuration file. In order to do so, you first need to open it with the command: Then find the line: Options Indexes FollowSymLinks Change that line to: Options FollowSymLinks Lastly save and exit the file, and restart … Read more

How does RewriteBase work in .htaccess

In my own words, after reading the docs and experimenting: You can use RewriteBase to provide a base for your rewrites. Consider this This is a real rule I used to ensure that URLs have a trailing slash. This will convert to By having the RewriteBase there, you make the relative path come off the RewriteBase parameter.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)