Announcement

Collapse
No announcement yet.

Troubles with symbols / and \ in title

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • RedFoxy
    started a topic [Forum] Troubles with symbols / and \ in title

    Troubles with symbols / and \ in title

    Hi!
    When a my user insert / or \ in the title I've troubles with rewrite, there is something to fix it?


    I use "Mod Rewrite Friendly URLs" and that it's my .htaccess:

    Code:
    # Author: Matty Asia
    # Version 1.6
    # Downloaded from: http://www.vbulletin.com/forum/showthread.php?325798
    
    RewriteEngine On
    Options +FollowSymLinks
    
    
    ####Charset
    AddDefaultCharset Off 
    
    ####Gzip
    <IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^(.*)(js|css)$ /redir.php?file=$1$2&type=$2 [L]
    </IfModule>
    
    ####ETags
    FileETag None
    
    RewriteRule ^((urllist|sitemap)_.*\.(xml|txt)(\.gz)?)$ /sitemapxml/vbulletin_sitemap_index.xml.gz [L]
    RewriteRule ^((urllist|sitemap)*\.(xml|txt)(\.gz)?)$ /sitemapxml/vbulletin_sitemap_index.xml.gz [L]
    
    
    ####Expires
    
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/gif A2592000
    ExpiresByType image/jpeg A2592000
    ExpiresByType image/png A2592000
    ExpiresByType application/x-shockwave-flash A2592000
    ExpiresByType text/css A2592000
    ExpiresByType application/x-javascript A2592000
    </IfModule>
    
    
    #
    # SAM-Wiki
    #
    RewriteRule ^SAM-Wiki/(.*)$ /samwiki/index.php?title=$1 [PT,L,QSA]
    RewriteRule ^SAM-Wiki/*$ /samwiki/index.php [L,QSA]
    RewriteRule ^/samwiki/*$ /samwiki/index.php [L,QSA]
    
    ### THIS IS A LITTLE EXTRA SECURITY AND CAN BE REMOVED
    
    RewriteRule ^includes/(.*) index.php
    RewriteRule ^vb/(.*) index.php
    RewriteRule ^packages/(.*) index.php
    
    ### THIS IS THE ACTUAL REWRITE
    
    RewriteRule ^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^members/([0-9]+) member.php?u=$1&%{QUERY_STRING}
    RewriteRule ^forums/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) forumdisplay.php?f=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^blogs/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) blog.php?u=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^entries/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) entry.php?b=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^list/([^/]*/)([0-9]+) list.php?r=$1$2&%{QUERY_STRING}
    RewriteRule ^content/(.*) content.php?r=$1&%{QUERY_STRING}
    RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1&%{QUERY_STRING}

Related Topics

Collapse

  • Asad993
    Mod Rewrite Friendly URLs Issue
    by Asad993
    Hello,

    I was using vBulletin 4.4.2 on Mod Rewrite Friendly URLs with follwing rewrite .htaccess file.

    HTML Code:
    # Author: Matty Asia
    # Version 1.4
    # Downloaded from: http://www.vbulletin.com/forum/showthread.php?325798
    ...
    Wed 3 Sep '14, 4:07am
Working...
X