Major .htaccess rewite rule issues

Discussion in 'Apache' started by drnibbles, Jun 10, 2007.

  1. #1
    Hi everyone..

    I have a joomla site running on apache 2 on windows. (XAMPP) the site runs fine and I'm using virtual hosts. They should be set up all good. Ok so I wanted to get SEO working. Now I enabled everything and got the .htaccess going. However I can't get it to work.

    I Have tried everything that the readme suggest (enable disable Options +FollowSymLinks and # RewriteBase /) still no go.. I also have this in my apache error log T"he given path misformatted or contained invalid characters: Cannot map GET" I'm using jommla 1.0.12

    This is driving me crazy and i really need to get SEO working. I have tried openSEF and that didn't work either. This is the htaccess file

    ## Can be commented out if causes errors, see notes above.
    # Options +FollowSymLinks (i have tried with this on and off)

    #
    # mod_rewrite in use

    RewriteEngine On


    # Uncomment following line if your webserver's URL
    # is not directly related to physical file paths.
    # Update Your Joomla!/MamboDirectory (just / for root)
    # RewriteBase / (i have tried this on and off)


    ########## Begin - Joomla! core SEF Section
    ############# Use this section if using ONLY Joomla! core SEF
    ## ALL (RewriteCond) lines in this section are only required if you actually
    ## have directories named 'content' or 'component' on your server
    ## If you do not have directories with these names, comment them out.
    #
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## (have tried this on and off)
    RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
    RewriteRule ^(content/|component/) index.php
    #
    ########## End - Joomla! core SEF Section

    This is what the link looks like when it doesn't work
    http://www.bedelish.com/content/section/5/36/
    and this is the link once I turn SOE off
    http://www.bedelish.com/index.php?option=com_content&task=section&id=5&Itemid=36

    I'm running the latest XAMPP and except for this the site is working fine. Someone suggested that windows apache had a problem rewriting ":" and something but i don't know what to do.. any help would be great..

    Cheers
     
    drnibbles, Jun 10, 2007 IP
  2. drnibbles

    drnibbles Peon

    Messages:
    346
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    is there really no guru here that can help me !
     
    drnibbles, Jun 11, 2007 IP
  3. drnibbles

    drnibbles Peon

    Messages:
    346
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have decided to give up on this and reinstall with an updated XAMPP version.
     
    drnibbles, Jun 12, 2007 IP
  4. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #4
    Options +FollowSymLinks +Indexes
    RewriteEngine on
    RewriteBase /
    RewriteRule ^content/section/([^.]+)/([^.]+)/$ index.php?option=com_content&task=section&id=$1&Itemid=$2 [L]
     
    Nintendo, Jun 12, 2007 IP
  5. drnibbles

    drnibbles Peon

    Messages:
    346
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ohh my you know what ... that fixed the issue.. Thank you so much..
     
    drnibbles, Jun 13, 2007 IP