Phpld Url rewrite help needed!

Discussion in 'Directories' started by jezza chan, Mar 28, 2007.

  1. #1
    Ive been trying to make my site seo friendly by turning on the URL rewrite,
    but when its turned, you cannot click on categories, it just brings you to a server page. The url rewrite redirects me to a server page when clicking on a category.

    Ive tried enabling this in htaccess but when i upload the htaccess file the whole site switches off and gives me an internal server error instead and cant even access the site.

    If you can offer any help it would be greatly appreciated.

    Thanks
    J.C
     
    jezza chan, Mar 28, 2007 IP
  2. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #2
    add this

    # URL rewrite rules
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    ## Details Link Page Rewrite##
    RewriteCond %{REQUEST_FILENAME} !-f
     
    an0n, Mar 28, 2007 IP
    jezza chan likes this.
  3. jezza chan

    jezza chan Active Member

    Messages:
    1,488
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Nope, still hasnt fixed the problem, i still get redireted to a server page when i turn on the URL rewrite.

    Any other solutions?
     
    jezza chan, Mar 28, 2007 IP
  4. sterlingpixel

    sterlingpixel Peon

    Messages:
    264
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    sounds like a .htaccess issue (although I could be wrong as I only installed phpld yesterday) but I have had similar things happen with subdreamer and phpbb2 when trying to use seo friendly links without a .htaccess file.
     
    sterlingpixel, Mar 28, 2007 IP
  5. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #5
    Who is your hosting?

    also try this:

    in your link.tpl find the line like:

    this:
    {$smarty.const.DOC_ROOT}/detail/link-{$link.ID}.html{/if}

    change it to something like:

    this:
    {$smarty.const.DOC_ROOT}/link-detail/link-{$link.ID}.html{/if}
     
    an0n, Mar 28, 2007 IP
  6. paidhosting

    paidhosting Peon

    Messages:
    4,822
    Likes Received:
    483
    Best Answers:
    0
    Trophy Points:
    0
    #6
    U sure ur hosting provider provides allows mod_rewrite ?
     
    paidhosting, Mar 28, 2007 IP
  7. SasaVtec

    SasaVtec Notable Member

    Messages:
    1,588
    Likes Received:
    150
    Best Answers:
    0
    Trophy Points:
    275
    #7
    heard many issues like this, a lot of times no mod_rewrite
     
    SasaVtec, Mar 29, 2007 IP
  8. currenz

    currenz Peon

    Messages:
    1,672
    Likes Received:
    81
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I had some .htaccess issues with one of my hosting providers as well. It worked out ok after talking to their support. So I think you should check with your hosting provider.
     
    currenz, Mar 29, 2007 IP
  9. jezza chan

    jezza chan Active Member

    Messages:
    1,488
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    90
    #9
    I checked in the link.tpl file but did not find the line: {$smarty.const.DOC_ROOT}/detail/link-{$link.ID}.html{/if}

    I searched high and low and used find, but did not find the line.

    If it helps im using phpld v2.1
     
    jezza chan, Mar 29, 2007 IP