Results 1 to 5 of 5
-
25th Dec 2009, 09:26 PM #1OPMemberWebsite's:
Rapidforums.org AmarGram.comMod 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 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
Code:http://www.example.com/showthread.php?42-Honda-Motorbikes/page3
Code:http://www.example.com/showthread.php/42-Honda-Motorbikes/page3
Code:http://www.example.com/threads/42-Honda-Motorbikes/page3
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
-
25th Dec 2009, 09:29 PM #2MemberWebsite's:
litewarez.net litewarez.com triniwarez.comAnother line you should add is the below line for security
Options -Indexes
this disables the file lists if theres not a blnk index.html fileJoin 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
-
25th Dec 2009, 09:34 PM #3Member
I like this thing
Will really help in setting sites up faster, instead of installing whole SEO I use this
-
25th Dec 2009, 09:37 PM #4OPMemberWebsite's:
Rapidforums.org AmarGram.comAnd it will help your SEO.
-
25th Dec 2009, 09:37 PM #5MemberWebsite's:
litewarez.net litewarez.com triniwarez.comWhats 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
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How to rewrite/redirect a folder name with .htaccess
By GBot in forum Whitehat SEOReplies: 0Last Post: 14th Dec 2013, 07:16 AM -
Mod Rewrite Friendly URL -need help
By nk2join in forum vBulletinReplies: 3Last Post: 21st Aug 2012, 05:12 PM -
DLE rewrite / .htaccess issue
By Mixloads31 in forum Webmaster DiscussionReplies: 12Last Post: 25th Oct 2010, 08:12 AM -
Rewrite URL with htaccess?
By pi0tr3k in forum phpBBReplies: 2Last Post: 20th Sep 2010, 10:36 PM -
.htaccess rewrite
By Golden Falcon in forum IP.BoardReplies: 0Last Post: 25th Jan 2010, 06:14 AM
themaManager - edit and manage...
Version 4.04 released. Open older version (or...