Closed Thread
Results 1 to 2 of 2

Thread: Apache detected an error in the Rewrite config

  1. #1
    vrarohith39 is offline x10Hosting Member vrarohith39 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    4

    Apache detected an error in the Rewrite config

    I have some rewrite rules in my .htaccess file. the content of htaccess file is given below.

    RewriteEngine On
    RewriteRule ^post/([0-9]+)$ disp_post.php?post_id=$1
    RewriteRule ^user/([0-9]+)$ user_home.php?user_id=$1
    RewriteRule ^([a-zA-Z0-9-/]+)$ commu_home.php?name=$1

    It worked successfully on apache installed on my home computer , but its not working when I uploaded that file to my document root. and I got an error message "Apache detected an error in the Rewrite config" while I was trying to enable Hotlink Protection. Please help me to correct it.

  2. #2
    Skizzerz's Avatar
    Skizzerz is offline Contributors Skizzerz will become famous soon enough
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    2,153

    Re: Apache detected an error in the Rewrite config

    try adding RewriteBase / immediately after RewriteEngine On

    If that doesn't work, remove those lines, add in hotlink protection, and then add the lines back afterwards.

Closed Thread

Similar Threads

  1. apache mod rewrite
    By delphos in forum Free Hosting
    Replies: 1
    Last Post: 11-28-2010, 01:31 PM
  2. Apache SSL config for a folder
    By espfutbol98 in forum Programming Help
    Replies: 0
    Last Post: 05-13-2010, 07:00 PM
  3. Help Config Apache
    By espfutbol98 in forum Tutorials
    Replies: 1
    Last Post: 07-03-2009, 01:43 AM
  4. [EASY]Apache Mod Rewrite Needed => 100 points!
    By Reclutador in forum The Marketplace
    Replies: 7
    Last Post: 02-26-2007, 01:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers