1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Question about friendly URLs

Discussion in 'XenForo Questions and Support' started by SimonV, Jan 5, 2015.

  1. SimonV

    SimonV Well-Known Member

    I just migrated to XenForo just over a week ago and as such I've been checking 404's and redirections from my old content to new content.

    While I was checking around I noticed I was getting hits for threads and forums with index.php added at the end of the friendly URLs urls such as:


    Where as following the links via the forums the end URL is:


    Where are these links being generated?

    This looks like it also happens here at xenforo.com so I know its not just my site as I do have extra rules in my .htaccess to 301 old content from vB:


    You can even manipulate the .php and the URL is resolved:


    Is this classed as duplicate content? If so what would be the most appropriate way to fix this?
    Last edited: Jan 5, 2015
  2. Mike

    Mike XenForo Developer Staff Member

    The URLs aren't generated anywhere. It's possibly just down to clients (generally robots/scrapers) that don't properly understand the <base> tag in the HTML.
  3. SimonV

    SimonV Well-Known Member

    Its not just a few pages or a few hits its a lot of traffic. It looks like nearly all URLs since I converted, very strange.

    I think I plugged it with this rule:

        RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index\.php($|\ |\?)
        RewriteRule ^ /%1 [R=301,L]

Share This Page