.htaccess file Archives | Websiteroof https://websiteroof.com/knowledgebase/tag/htaccess-file/ The Best Canadian Web Hosting | Web Hosting Canada | Websiteroof Sat, 23 Jan 2021 16:57:13 +0000 en-US hourly 1 https://wordpress.org/?v=6.2.5 https://websiteroof.com/wp-content/uploads/2020/02/cropped-websiteroof-logo-1024-1204-32x32.png .htaccess file Archives | Websiteroof https://websiteroof.com/knowledgebase/tag/htaccess-file/ 32 32 How to protect your .htaccess file? https://websiteroof.com/knowledgebase/servers/siteworx-control-panel/how-to-protect-your-htaccess-file-2/ Sat, 23 Jan 2021 16:57:13 +0000 https://websiteroof.com/?post_type=epkb_post_type_1&p=6191 For security purposes, we recommended you prevent access to your .htaccess file from unauthorized access. Add this code to your .htaccess file: # .htaccess protection order allow, deny deny from all satisfy all

The post How to protect your .htaccess file? appeared first on Websiteroof.

]]>
How to disable directory browsing using .htaccess? https://websiteroof.com/knowledgebase/servers/siteworx-control-panel/how-to-disable-directory-browsing-using-htaccess-2/ Sat, 23 Jan 2021 16:54:48 +0000 https://websiteroof.com/?post_type=epkb_post_type_1&p=6189 For security purposes, we recommend that you disable directory browsing on your website so no one can see the files/folders of your website. You can disable Directory Browsing by adding this line to your .htaccess file. Options -Indexes

The post How to disable directory browsing using .htaccess? appeared first on Websiteroof.

]]>
How to ban any IP Address via .htaccess? https://websiteroof.com/knowledgebase/servers/siteworx-control-panel/how-to-ban-any-ip-address-via-htaccess-2/ Sat, 23 Jan 2021 16:52:43 +0000 https://websiteroof.com/?post_type=epkb_post_type_1&p=6187 If someone is trying to hack your website or you want to block their IP Address, you can add this line to your .htaccess file. order allow, deny deny from IP-ADDRESS allow from all Replace “IP-ADDRESS” with the IP Address you want to block.

The post How to ban any IP Address via .htaccess? appeared first on Websiteroof.

]]>
How to redirect a page to another page or website using .htaccess? https://websiteroof.com/knowledgebase/servers/siteworx-control-panel/redirect-a-page-to-another-page-or-website-using-htaccess/ Sat, 23 Jan 2021 16:36:44 +0000 https://websiteroof.com/?post_type=epkb_post_type_1&p=6183 If a page on your website no longer exists and you want to redirect it to your new page or website then you can use the .htaccess file for redirection without waiting. Redirect from a page/directory to another domain or the main domain: Redirect from a specific page to a domain: RewriteEngine on Redirect 301 […]

The post How to redirect a page to another page or website using .htaccess? appeared first on Websiteroof.

]]>
How to protect your .htaccess file? https://websiteroof.com/knowledgebase/hosting/security/how-to-protect-your-htaccess-file/ Sat, 23 Jan 2021 15:11:30 +0000 https://websiteroof.com/?post_type=epkb_post_type_1&p=6142 For security purpose, we recommended you prevent access to your .htaccess file from unauthorized access. Add this code to your .htaccess file: # .htaccess protection order allow, deny deny from all satisfy all

The post How to protect your .htaccess file? appeared first on Websiteroof.

]]>