image description
Web hosting FAQ & Knowledge base

Hosted websites for 19,223,500 users all over the world!

Knowledge Base Articles

Do you support .htaccess? What should I know about it ?

All our servers support .htaccess by default. Usage is unrestricted so you can put any rules or PHP flags to .htaccess file.

But, there is one thing you should know about .htaccess and mod_rewrite rules:

We use virtual user home directory paths, so you may get errors when trying to set up search engine friendly URL's. All you need to do to fix this issue is add the below line to the very top of your .htaccess file:

RewriteBase /

Make sure this line is placed before all the other rules (on the first line of .htaccess file). That's it. Now your rewrite rules will be working fine.

Note: if you are installing your script to some directory such as www.yourdomain.com/forum/, you have to place RewriteBase /forum/ line to the .htaccess file which also must be located in public_html/forum/ directory.


Go back
  • php
  • my sql
  • intel
  • cloudlinux
  • nginx
  • cloudflare
  • wordpress
  • 24/7 Live Support
  • Easy Website Builder
  • 2X Optimización de la Velocidad de WordPress
  • Powerful Control Panel
  • 30-Days Money-Back Guarantee
Grab the limited time deal!
$ 1
95
/mo
$11.97
$5.85 for 3 months
Save 51%
Get started
Hostinger logo
Cyber Sale From $0.72/month
arrow_right
arrow_left
Get started
keyboard_arrow_up Swipe Up
Hostinger logo

Limited time offer

Cyber Sale

From $0.72/month

Get Hostinger’s Fast & Secure Web Hosting with an SSL Certificate for FREE!

arrow_right
arrow_left
Get started now
Close