image description
Web hosting FAQ & Knowledge base

Hosted websites for 21,807,353 users all over the world!

Knowledge Base Articles

How to make mod_rewrite rules working?

We use virtual user directory paths, so you can get error when trying to setup search engine friendly URLs or trying to pass virtual directory names to PHP scripts. It can be fixed very easy. Open your .htaccess file and add this line at the top of the file or before the first rewrite rule:

RewriteBase /

Note: if your script is installed on some directory, for example /forum, you have to place RewriteBase /forum line to the .htaccess file (.htaccess file must be also located in /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

Juicy DEAL

Web Hosting + FREE Domain

:
:
:
Splash this!
keyboard_arrow_up Swipe Up
Hostinger logo

Juicy DEAL

Web Hosting + FREE Domain

The deal ends in:
:
:
:
Splash this!
Close