Activity Stream
48,167 MEMBERS
6871 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 5 of 5
  1.     
    #1
    Member
    Website's:
    Rapidforums.org AmarGram.com

    Default Mod Rewrite Friendly URLs => .htaccess

    There is no .htaccess to support the "Mod Rewrite Friendly URLs", so I have one written below, the first 3 are just a little beta bug proofing.

    I can not guarantee this is perfect, but it's working so far, if I find any bugs, I'll squish em and edit in an updated version

    Download: http://www.phpatlas.com/vBulletin/htaccess

    Code: 
    # Author: Matty Asia
    # Version 1.6
    # Downloaded from: http://www.vbulletin.com/forum/showthread.php?325798
    
    RewriteEngine On
    Options +FollowSymLinks
    
    ### 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*****$1$2&%{QUERY_STRING}
    RewriteRule ^content/(.*) content.php*****$1&%{QUERY_STRING}
    RewriteRule ^widget/config/([0-9]+) widget.php*****config/$1&%{QUERY_STRING}
    To use this you must have Mod Rewrite Friendly URLs enabled.

    To do this...
    You need to go to Admin Control Panel then Settings > Options
    Server Settings and Optimization Options
    Then select Mod Rewrite Friendly URLs in the Friendly URLs section.

    UPDATES:
    1.6 Added ... Widget bit
    1.5 Added ... Options +FollowSymLinks
    1.4 Fixed content editing for CMS sections without SEO friendly names

    If you get Error 500, check the .htaccess file for any \n hidden anywhere as seems to have appeared for a number of users copying from here, see the quote just below. Make sure what you copy is identical to what you see above.

    Four options for Friendly URLs

    Standard URL:
    Code: 
    http://www.example.com/showthread.php?t=42&page=3
    Basic Friendly URL:
    Code: 
    http://www.example.com/showthread.php?42-Honda-Motorbikes/page3
    Advanced Friendly URL:
    Code: 
    http://www.example.com/showthread.php/42-Honda-Motorbikes/page3
    Rewritten Friendly URL:
    Code: 
    http://www.example.com/threads/42-Honda-Motorbikes/page3
    From VB.ORG
    kamrul Reviewed by kamrul on . Mod Rewrite Friendly URLs => .htaccess There is no .htaccess to support the "Mod Rewrite Friendly URLs", so I have one written below, the first 3 are just a little beta bug proofing. I can not guarantee this is perfect, but it's working so far, if I find any bugs, I'll squish em and edit in an updated version Download: http://www.phpatlas.com/vBulletin/htaccess # Author: Matty Asia # Version 1.6 # Downloaded from: http://www.vbulletin.com/forum/showthread.php?325798 Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    Another line you should add is the below line for security

    Options -Indexes

    this disables the file lists if theres not a blnk index.html file
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


  4.     
    #3
    Member
    I like this thing
    Will really help in setting sites up faster, instead of installing whole SEO I use this

  5.     
    #4
    Member
    Website's:
    Rapidforums.org AmarGram.com
    And it will help your SEO.

  6.     
    #5
    Member
    Website's:
    litewarez.net litewarez.com triniwarez.com
    Whats with the stars

    RewriteRule ^list/([^/]*/)([0-9]+) list.php*****$1$2&%{QUERY_STRING}
    Join Litewarez.net today and become apart of the community.
    Unique | Clean | Advanced (All with you in mind)
    Downloads | Webmasters


    Notifications,Forum,Chat,Community all at Litewarez Webmasters


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 14th Dec 2013, 07:16 AM
  2. Mod Rewrite Friendly URL -need help
    By nk2join in forum vBulletin
    Replies: 3
    Last Post: 21st Aug 2012, 05:12 PM
  3. DLE rewrite / .htaccess issue
    By Mixloads31 in forum Webmaster Discussion
    Replies: 12
    Last Post: 25th Oct 2010, 08:12 AM
  4. Rewrite URL with htaccess?
    By pi0tr3k in forum phpBB
    Replies: 2
    Last Post: 20th Sep 2010, 10:36 PM
  5. .htaccess rewrite
    By Golden Falcon in forum IP.Board
    Replies: 0
    Last Post: 25th Jan 2010, 06:14 AM

Tags for this Thread

BE SOCIAL