need help about my .htacess

Discussion in 'Apache' started by trichnosis, Oct 9, 2007.

  1. #1
    Hi;

    I own a joomla web site. and i'm using sef urls for my web site.

    My urls are like sitename.com/section/category/item-title.html .

    And I have added

    to my .htaccess.

    When people gives me link with sitename.com/section/category/item-title.html, my .htaccess redirects it to wwww.sitename.com/index.php/category/item-title.html .

    It's my problem.

    I want to redirect from sitename.com/section/category/item-title.html to www. sitename.com/section/category/item-title.html , when people gives me with sitename.com/section/category/item-title.html url.

    Thanks for your comments
     
    trichnosis, Oct 9, 2007 IP
  2. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    That rule should work fine, i would suggest you put it at the TOP of your rewrite rules, and change [R=301] to [R=301,L] (top - after any server settings, it should be the first rewrite rules you have)

    hopefully that'll fix your problem right up.
     
    powerspike, Oct 9, 2007 IP