Community management insight at ManagingCommunities.com

Bookmark and Share

Rename index.php

Rename index.php

Postby shof515 » January 20th 2005, 9:25 pm

Here is how you can rename index.php to something else.php. In this example, forumindex.php is the name you are trying to achieve, but you can change it to whatever you want.

Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
groupcp.php
#
#-----[ FIND ]------------------------------------------
#(First Find)
			'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
			'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#
		$message = $lang['Not_group_moderator'] . '<br /><br />' . sprintf($lang['Click_return_group'], '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
# 
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
# 
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#
	$message = $lang['Group_type_updated'] . '<br /><br />' . sprintf($lang['Click_return_group'], '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
# 
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
# 
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#(2nd Find)
						'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
						'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#
					$message = $lang['Already_member_group'] . '<br /><br />' . sprintf($lang['Click_return_group'], '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
# 
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
# 
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#(3rd Find)
				'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
				'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#
			$message = $lang['This_closed_group'] . '<br /><br />' . sprintf($lang['Click_return_group'], '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
# 
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
# 
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#(4th Find)
		'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
		'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#
	$message = $lang['Group_joined'] . '<br /><br />' . sprintf($lang['Click_return_group'], '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
# 
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
# 
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#(5th Find)
			'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
			'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#
		$message = $lang['Unsub_success'] . '<br /><br />' . sprintf($lang['Click_return_group'], '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
# 
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
# 
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#(6th Find)
					'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
					'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#
				$message = $lang['Not_group_moderator'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ REPLACE WITH ]------------------------------------------
#
				$message = $lang['Not_group_moderator'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#
					$message = $lang['Could_not_add_user'] . "<br /><br />" . sprintf($lang['Click_return_group'], "<a href=\"" . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_index'], "<a href=\"" . append_sid("index.$phpEx") . "\">", "</a>");
#
#-----[ IN-LINE FIND ]------------------------------------------
# 
<a href=\"" . append_sid("index.$phpEx") . "\">", "</a>");
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
# 
<a href=\"" . append_sid("forumindex.$phpEx") . "\">", "</a>");
#
#-----[ FIND ]------------------------------------------
#
					$message = $lang['Could_not_anon_user'] . '<br /><br />' . sprintf($lang['Click_return_group'], '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
# 
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
# 
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#
					$message = $lang['User_is_member_group'] . '<br /><br />' . sprintf($lang['Click_return_group'], '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
# 
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
# 
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
		"META" => '<meta http-equiv="refresh" content="3;url='  .append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
		"META" => '<meta http-equiv="refresh" content="3;url='  .append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#
	$message = $lang['Forums_marked_read'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a> ');
#
#-----[ REPLACE WITH ]------------------------------------------
#
	$message = $lang['Forums_marked_read'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("forumindex.$phpEx") . '">', '</a> ');
#
#-----[ FIND ]------------------------------------------
#
		'U_MARK_READ' => append_sid("index.$phpEx?mark=forums"))
#
#-----[ REPLACE WITH ]------------------------------------------
#
		'U_MARK_READ' => append_sid("forumindex.$phpEx?mark=forums"))
#
#-----[ FIND ]------------------------------------------
#
				'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id"))
#
#-----[ REPLACE WITH ]------------------------------------------
#
				'U_VIEWCAT' => append_sid("forumindex.$phpEx?" . POST_CAT_URL . "=$cat_id"))
#
#-----[ OPEN ]------------------------------------------
#
login.php
#
#-----[ FIND ]------------------------------------------
#(1st find)
redirect(append_sid("index.$phpEx", true));
#
#-----[ REPLACE WITH ]------------------------------------------
#
redirect(append_sid("forumindex.$phpEx", true));
#
#-----[ FIND ]------------------------------------------
#(1st find)
						$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp;', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
						$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp;', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "forumindex.$phpEx";
#
#-----[ FIND ]------------------------------------------
#
					$message = $lang['Error_login'] . '<br /><br />' . sprintf($lang['Click_return_login'], "<a href=\"login.$phpEx?redirect=$redirect\">", '</a>') . '<br /><br />' .  sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
# 
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#
			$message = $lang['Error_login'] . '<br /><br />' . sprintf($lang['Click_return_login'], "<a href=\"login.$phpEx?redirect=$redirect\">", '</a>') . '<br /><br />' .  sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
# 
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#(2nd find)
			redirect(append_sid("index.$phpEx", true));
#
#-----[ REPLACE WITH ]------------------------------------------
#
			redirect(append_sid("forumindex.$phpEx", true));
#
#-----[ FIND ]------------------------------------------
#(2nd find)
		$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp;', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
		$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp;', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "forumindex.$phpEx";
#
#-----[ FIND ]------------------------------------------
#(3rd find)
		redirect(append_sid("index.$phpEx", true));
#
#-----[ REPLACE WITH ]------------------------------------------
#
		redirect(append_sid("forumindex.$phpEx", true));
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
		$redirect = "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
		$redirect = "forumindex.$phpEx";
#
#-----[ OPEN ]------------------------------------------
#
privmsg.php
#
#-----[ FIND ]------------------------------------------
#
		$msg = $lang['Message_sent'] . '<br /><br />' . sprintf($lang['Click_return_inbox'], '<a href="' . append_sid("privmsg.$phpEx?folder=inbox") . '">', '</a> ') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
# 
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
# 
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ OPEN ]------------------------------------------
#
profile.php
#
#-----[ FIND ]------------------------------------------
#
redirect(append_sid("index.$phpEx", true));
#
#-----[ REPLACE WITH ]------------------------------------------
#
redirect(append_sid("forumindex.$phpEx", true));
#
#-----[ OPEN ]------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------
#
	'url' => append_sid('index.'.$phpEx),
#
#-----[ REPLACE WITH ]------------------------------------------
#
	'url' => append_sid('forumindex.'.$phpEx),
#
#-----[ OPEN ]------------------------------------------
#
viewonline.php
#
#-----[ FIND ]------------------------------------------
#
					$location_url = "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
					$location_url = "forumindex.$phpEx";
#
#-----[ FIND ]------------------------------------------
#
					$location_url = "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
					$location_url = "forumindex.$phpEx";
#
#-----[ FIND ]------------------------------------------
#
					$location_url = "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
					$location_url = "forumindex.$phpEx";
#
#-----[ FIND ]------------------------------------------
#
					$location_url = "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
					$location_url = "forumindex.$phpEx";
#
#-----[ FIND ]------------------------------------------
#
					$location_url = "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
					$location_url = "forumindex.$phpEx";
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_activate.php
#
#-----[ FIND ]------------------------------------------
#(1st Find)
			'META' => '<meta http-equiv="refresh" content="10;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
			'META' => '<meta http-equiv="refresh" content="10;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#(2nd Find)
				'META' => '<meta http-equiv="refresh" content="10;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
				'META' => '<meta http-equiv="refresh" content="10;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#(3rd Find)
				'META' => '<meta http-equiv="refresh" content="10;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
				'META' => '<meta http-equiv="refresh" content="10;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_email.php
#
#-----[ FIND ]------------------------------------------
#
	redirect(append_sid("index.$phpEx", true));
#
#-----[ REPLACE WITH ]------------------------------------------
#
	redirect(append_sid("forumindex.$phpEx", true));
#
#-----[ FIND ]------------------------------------------
#
						'META' => '<meta http-equiv="refresh" content="5;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
						'META' => '<meta http-equiv="refresh" content="5;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#
					$message = $lang['Email_sent'] . '<br /><br />' . sprintf($lang['Click_return_index'],  '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ REPLACE WITH ]------------------------------------------
#
					$message = $lang['Email_sent'] . '<br /><br />' . sprintf($lang['Click_return_index'],  '<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
				$message = $lang['Profile_updated_inactive'] . '<br /><br />' . sprintf($lang['Click_return_index'],  '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ REPLACE WITH ]------------------------------------------
#
				$message = $lang['Profile_updated_inactive'] . '<br /><br />' . sprintf($lang['Click_return_index'],  '<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#
				$message = $lang['Profile_updated'] . '<br /><br />' . sprintf($lang['Click_return_index'],  '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ REPLACE WITH ]------------------------------------------
#
				$message = $lang['Profile_updated'] . '<br /><br />' . sprintf($lang['Click_return_index'],  '<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#
				"META" => '<meta http-equiv="refresh" content="5;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
				"META" => '<meta http-equiv="refresh" content="5;url=' . append_sid("forumindex") . '">')
#
#-----[ FIND ]------------------------------------------
#
			$message = $message . '<br /><br />' . sprintf($lang['Click_return_index'],  '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ REPLACE WITH ]------------------------------------------
#
			$message = $message . '<br /><br />' . sprintf($lang['Click_return_index'],  '<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_sendpasswd.php
#
#-----[ FIND ]------------------------------------------
#
				'META' => '<meta http-equiv="refresh" content="15;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
				'META' => '<meta http-equiv="refresh" content="15;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#
			$message = $lang['Password_updated'] . '<br /><br />' . sprintf($lang['Click_return_index'],  '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ REPLACE WITH ]------------------------------------------
#
			$message = $lang['Password_updated'] . '<br /><br />' . sprintf($lang['Click_return_index'],  '<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
	'U_INDEX' => append_sid('index.'.$phpEx),
#
#-----[ REPLACE WITH ]------------------------------------------
#
	'U_INDEX' => append_sid('forumindex.'.$phpEx),
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
		"U_FORUM_INDEX" => append_sid("../index.$phpEx"),
#
#-----[ REPLACE WITH ]------------------------------------------
#
		"U_FORUM_INDEX" => append_sid("../forumindex.$phpEx"),
#
#-----[ FIND ]------------------------------------------
#
					case PAGE_INDEX:
						$location = $lang['Forum_index'];
						$location_url = "index.$phpEx?pane=right";
						break;
#
#-----[ IN-LINE FIND ]------------------------------------------
# 
						$location_url = "index.$phpEx?pane=right";
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
# 
						$location_url = "forumindex.$phpEx?pane=right";
#
#-----[ OPEN ]------------------------------------------
#
admin/page_header_admin.php
#
#-----[ FIND ]------------------------------------------
#
	'U_INDEX' => append_sid('../index.'.$phpEx),
#
#-----[ REPLACE WITH ]------------------------------------------
#
	'U_INDEX' => append_sid('../forumindex.'.$phpEx),
shof515
Dedicated User
 
Posts: 749
Joined: March 21st 2003, 11:47 pm

Return to phpBB 2: Customizing Your phpBB

Who is online

Users browsing this forum: No registered users and 0 guests