MyBB Community Forums

Full Version: .htaccess question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
is there a way to get my .htaccess to use .irc and not .html for my forums over at http://yourirc.net/forums ?
you can add a rewrite rule in your .htaccess


RewriteEngine on

# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /

RewriteRule 


Thats just a template for it you need more code after "RewruiteRule"
Edit ./inc/init.php

Replace:

	define('FORUM_URL', "forum-{fid}.html");
	define('FORUM_URL_PAGED', "forum-{fid}-page-{page}.html");
	define('THREAD_URL', "thread-{tid}.html");
	define('THREAD_URL_PAGED', "thread-{tid}-page-{page}.html");
	define('THREAD_URL_ACTION', 'thread-{tid}-{action}.html');
	define('THREAD_URL_POST', 'thread-{tid}-post-{pid}.html');
	define('POST_URL', "post-{pid}.html");
	define('PROFILE_URL', "user-{uid}.html");
	define('ANNOUNCEMENT_URL', "announcement-{aid}.html");
	define('CALENDAR_URL', "calendar-{calendar}.html");
	define('CALENDAR_URL_YEAR', 'calendar-{calendar}-year-{year}.html');
	define('CALENDAR_URL_MONTH', 'calendar-{calendar}-year-{year}-month-{month}.html');
	define('CALENDAR_URL_DAY', 'calendar-{calendar}-year-{year}-month-{month}-day-{day}.html');
	define('CALENDAR_URL_WEEK', 'calendar-{calendar}-week-{week}.html');
	define('EVENT_URL', "event-{eid}.html");
	define('INDEX_URL', "index.php");

with:

	define('FORUM_URL', "forum-{fid}.irc");
	define('FORUM_URL_PAGED', "forum-{fid}-page-{page}.irc");
	define('THREAD_URL', "thread-{tid}.irc");
	define('THREAD_URL_PAGED', "thread-{tid}-page-{page}.irc");
	define('THREAD_URL_ACTION', 'thread-{tid}-{action}.irc');
	define('THREAD_URL_POST', 'thread-{tid}-post-{pid}.irc');
	define('POST_URL', "post-{pid}.irc");
	define('PROFILE_URL', "user-{uid}.irc");
	define('ANNOUNCEMENT_URL', "announcement-{aid}.irc");
	define('CALENDAR_URL', "calendar-{calendar}.irc");
	define('CALENDAR_URL_YEAR', 'calendar-{calendar}-year-{year}.irc');
	define('CALENDAR_URL_MONTH', 'calendar-{calendar}-year-{year}-month-{month}.irc');
	define('CALENDAR_URL_DAY', 'calendar-{calendar}-year-{year}-month-{month}-day-{day}.irc');
	define('CALENDAR_URL_WEEK', 'calendar-{calendar}-week-{week}.irc');
	define('EVENT_URL', "event-{eid}.irc");
	define('INDEX_URL', "index.php");

Also edit .htaccess and replace each instance of .html with .irc