VPS Hosting OR modrewrite allowed on shared

Discussion in 'Hosting' started by DCC, May 4, 2011.

  1. DCC

    DCC New Member


    Anyone know the cheapest way to host a site that needs mod rewrite allowed? I am being told most of the shared hosting packages do not allow this and that I need a VPS hosting package.

    What's my cheapest option?

  2. mneylon

    mneylon Administrator Staff Member

    Most hosting providers offer mod_rewrite with their Linux hosting plans

    Or are you trying to do something very specific?
  3. DCC

    DCC New Member

    Just asked to provide hosting which can deal with:

    We are looking for a standard LAMP stack (Linux, Apache 2.x, PHP 5.x and MySQL)

    The Apache server on the LAMP stack needs to support "mod_rewrite" fully in a shared or virtual environment.

    Below is the rewrite script used.

    The following is what we are using and there is nothing really complex about it.
    We are doing this on a pre-directory basis using .htaccess files.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]

    <IfModule !mod_rewrite.c>
    ErrorDocument 404 /index.php
  4. mneylon

    mneylon Administrator Staff Member

    There's nothing odd about that

    Pretty much any hosting provider should be able to handle it .. I know we do and would be surprised if any of the others didn't ..
  5. myfirsturl

    myfirsturl New Member

    that's true. every hosting provider should provide you with mod_rewrite. i had about 10 providers and everyone accepted this mode. so far i did not heard anything like this. very strage for me. and be sure if you will get a shared hosting i can garantee you that this the cheapest way to start your website.

Share This Page