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.

Can some one tell me why this does not work ?

Discussion in 'PHP' started by ezguy, Apr 16, 2016.

  1. #1
    I am trying to fix my .htaccess it does not seem to work.

    the site is babynamesandmeanings.net


    this is the .htaccess

    RewriteEngine on



    #index.php



    RewriteRule ^([A-Z]+)/$ /index.php?letter=$1 [L,NC]

    RewriteRule ^([A-Z]+)/page-([0-9]*)/$ /index.php?letter=$1&page=$2 [L,NC]



    #boy-baby-names.php
    RewriteRule ^boys/([A-Z]+)/$ /boy-baby-names.php?letter=$1 [L,NC]
    RewriteRule ^boys/([A-Z]+)/page-([0-9]*)/$ /boy-baby-names.php?letter=$1&page=$2 [L,NC]


    can some one tell me what is wrong here ?
     
    ezguy, Apr 16, 2016 IP
  2. Blizzardofozz

    Blizzardofozz Well-Known Member

    Messages:
    132
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    118
    #2
    are you trying to do this:

    RewriteRule (.*).html?$ index.php?letter=$1 [QSA,L]

    ?
     
    Blizzardofozz, Apr 18, 2016 IP
  3. fisasti

    fisasti Active Member

    Messages:
    42
    Likes Received:
    5
    Best Answers:
    2
    Trophy Points:
    58
    #3
    Hi! Could you please provide the error details? It's on the error_log file. To find where it's located, open the httpd.conf configuratin file, look for "error_log" and copy the path. It might be on /var/log/error_log
     
    fisasti, Apr 19, 2016 IP