XF 1.5 Not opening thread

Mutlu

Member
In my web site https://yorumkalemi.com there is a forum in https://yorumkalemi.com/forums/fotografcilik-kuluebue-haber-ve-duyurulari.141/

Some of threads are named like this

04.11.2014 gece çekimleri (https://yorumkalemi.com/threads/04-11-2014-gece-cekimleri.4491/)
14.toplantı (https://yorumkalemi.com/threads/14-toplanti.3984/)
2. Kültür ve Edebiyat Günleri +Fotoğraf Sergimiz(https://yorumkalemi.com/threads/2-kueltuer-ve-edebiyat-guenleri-fotograf-sergimiz.3973/)


The problem is on the link.
When click the first one, it opens to https://yorumkalemi.com/threads/04 instead of https://yorumkalemi.com/threads/4491
In second one, it opens to https://yorumkalemi.com/threads/14 instead of https://yorumkalemi.com/threads/3984
In third one it opens to https://yorumkalemi.com/threads/2 instead of https://yorumkalemi.com/threads/3973


When I click https://yorumkalemi.com/threads/3984 it opens to https://yorumkalemi.com/threads/14

I'm using xenforo 1.5.8

Is it bug? or related to htaccess

My htaccess file is

Code:
#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
#</IfModule>

<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 1 seconds"
    ExpiresByType text/html "access plus 1 seconds"
    ExpiresByType image/gif "access plus 3456000 seconds"
    ExpiresByType image/jpeg "access plus 3456000 seconds"
    ExpiresByType image/png "access plus 3456000 seconds"
    ExpiresByType text/css "access plus 3456000 seconds"
    ExpiresByType text/javascript "access plus 3456000 seconds"
    ExpiresByType application/javascript "access plus 3456000 seconds"
    ExpiresByType application/x-javascript "access plus 3456000 seconds"
</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default

<IfModule mod_rewrite.c>

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

#    RewriteEngine On
#RewriteCond %{HTTP_HOST} ^www.YorumKalemi\.com [NC]
#RewriteRule ^(.*)$ https://YorumKalemi.com/$1 [L,R=301]

    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
    #RewriteBase /xenforo

    #    This line may be needed to enable WebDAV editing with PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

#RewriteCond %{QUERY_STRING} (\?|^)([0-9]+)-.*
#    RewriteRule showthread.php showthread.php?t=%2 [R=301,L]

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://YorumKalemi.com/$1 [R,L]

RewriteRule ^threads/([0-9]+)-.*$ /threads/$1? [R=301,L]
RewriteRule ^forums/([0-9]+)-.*$ /forums/$1? [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]



    RewriteRule ^.*$ index.php [NC,L]
</IfModule>

<ifModule mod_expires.c>
     ExpiresActive On
     ############################################
     ## Add default Expires header
     ## http://developer.yahoo.com/performance/rules.html#expires
     <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
     ExpiresDefault "access plus 1 year"
     </FilesMatch>
     </ifModule>
   
     <IfModule mod_deflate.c>
  # Compress HTML, CSS, JavaScript, Text, XML and fonts
  AddOutputFilterByType DEFLATE application/javascript
  AddOutputFilterByType DEFLATE application/rss+xml
  AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
  AddOutputFilterByType DEFLATE application/x-font
  AddOutputFilterByType DEFLATE application/x-font-opentype
  AddOutputFilterByType DEFLATE application/x-font-otf
  AddOutputFilterByType DEFLATE application/x-font-truetype
  AddOutputFilterByType DEFLATE application/x-font-ttf
  AddOutputFilterByType DEFLATE application/x-javascript
  AddOutputFilterByType DEFLATE application/xhtml+xml
  AddOutputFilterByType DEFLATE application/xml
  AddOutputFilterByType DEFLATE font/opentype
  AddOutputFilterByType DEFLATE font/otf
  AddOutputFilterByType DEFLATE font/ttf
  AddOutputFilterByType DEFLATE image/svg+xml
  AddOutputFilterByType DEFLATE image/x-icon
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/javascript
  AddOutputFilterByType DEFLATE text/plain
  AddOutputFilterByType DEFLATE text/xml

  # Remove browser bugs (only needed for really old browsers)
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4\.0[678] no-gzip
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  Header append Vary User-Agent
</IfModule>
 
It's likely related to these custom rewrites:

RewriteRule ^threads/([0-9]+)-.*$ /threads/$1? [R=301,L]
RewriteRule ^forums/([0-9]+)-.*$ /forums/$1? [R=301,L]
 
Top Bottom