1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

httpd.conf and mod_rewrite

Discussion in 'Apache' started by al2six, Aug 16, 2012.

  1. #1
    I'm having some issues getting mod_rewrite to work on my brand new server. This is my first time having my own server (as opposed to being on shared hosting where everything is all set up for you) so i'm totally new to all of this. mod_rewrite doesn't seem to be working for me even though my httpd.conf file is showing it enabled and so is my phpinfo(). I'm wondering if there's something else in httpd.conf that I have to change... like maybe something that tells it to ignore .htaccess files.

    Does anyone have any ideas for how I can resolve this?

    Thanks!
     
    al2six, Aug 16, 2012 IP
  2. Ray Baron

    Ray Baron Member

    Messages:
    148
    Likes Received:
    10
    Best Answers:
    3
    Trophy Points:
    43
    #2
    Your best bet for help with this is to post the rewrite code you are having trouble with. There are a number of things from not turning the rewrite engine on to syntax errors. Any responses beyond that would just be guessing.
     
    Ray Baron, Aug 16, 2012 IP
  3. bestemployer

    bestemployer Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    My best guess is that mod_rewrite is working, as you say, but you are trying to use it via .htaccess files, which are disabled in Apache2 configuration. See here (docs for Ubuntu, but should work on most of other systems as well): (I can't post a link, so just Google "Enabling Use of Apache htaccess ubuntu").
     
    bestemployer, Aug 17, 2012 IP