• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WordPress Tips, Code Snippets, and How To Tutorials

  • Home
  • Blog
  • Tips
  • Snippets
  • Tutorials
  • Contact

.htaccess

How to redirect http to https in your WordPress website using your .htaccess file

October 26, 2019 by admin Leave a Comment

If you are using WordPress and have updated your website with a SSL to have https for the url instead of http you may want to have the website redirect http urls to https. That way it may help when people type in http urls to redirect them to the https url instead. You can put this code in your .htaccess file using FTP to do that.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

You should be very careful when you edit the htaccess file.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: Code Snippets Tagged With: .htaccess, FTP, HTTPS, Links, SSL

How to generate a .htaccess file for your WordPress website

October 26, 2019 by admin Leave a Comment

If you are using WordPress for your website you may want to have the website generate a new .htaccess file. The htaccess file has many uses but one is to tell the server how to behave for some things. For example you can use the htaccess file to have a link on your website redirect to a different link. Your WordPress website has a tool in it that generates a htaccess file.

To generate a .htaccess file for your WordPress website you can click on settings > permalinks then update your settings on that page or click save changes there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tips Tagged With: .htaccess, WordPress Admin

How to secure Plugin files to prevent direct access

October 23, 2015 by admin Leave a Comment

A lot of WordPress Plugins allow direct access by typing in the url in your browser. Depending on the situation, this could be a potential security threat that could allow your site to be hacked. Today’s snack will show you how to stop people from being able to access your Plugin files directly.
[Read more…] about How to secure Plugin files to prevent direct access

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tips Tagged With: .htaccess, Plugins

How to make an easy WordPress login link

July 23, 2015 by admin Leave a Comment

Are you tired of having to use the default WordPress login url to get to login to your Admin Dashboard? Today’s snack will show you how to make it so http://yoursite.com/login takes you to your WordPress login.
[Read more…] about How to make an easy WordPress login link

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tips Tagged With: .htaccess, Links

Primary Sidebar

Hey, We Deliver... Anywhere!

Enter Email Address below to receive our snacks via email:

Join Over 1200 Readers!

Jump To A Random WordPress Tip

Copyright © 2019 • wpsnacks.com