Quote
This Infusion will Change almost all URLs of your website into Descriptive SEO URLs.
##################
# #
# INSTALLATION #
# #
##################
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1. Upload Files :
* Upload the folder 'seo_friendly_urls_panel' to the 'infusions' folder of your Web Server.
* Upload '.htaccess' file to the root directory.
2. Login into Website and goto Admin Panel --> System Admin --> Infusions and Infuse the 'SEO URLs for PHPFusion' Infusion.
3. Add the Panel 'seo_friendly_urls_panel' as Left/Right Panel on your website an Enable it. If adding as a Center Panel, then check 'Display on All Pages'.
4. Modify 'maincore.php' :
Look For :
define("TRUE_PHP_SELF", $current_page);
Now, if you are going to have URLs as HTML URLS (http://mysite.com/news.html), then Replace this Line with :
if (preg_match("/\/(administration)\//", $current_page)) {
define("TRUE_PHP_SELF", $current_page);
}
else if (preg_match("/".preg_replace("/([a-zA-Z0-9_]+)(\.php|\.html)?/", "$1", $settings['opening_page'])."/", preg_replace("/\/([a-zA-Z0-9_]+)(\.php|\.html)?/", "$1", $current_page))) {
define("TRUE_PHP_SELF", preg_replace("/\/([a-zA-Z0-9_]+)(\.php|\.html)?/", "/$1.html", $current_page));
}
else {
define("TRUE_PHP_SELF", $current_page);
}
----------
Now, if you are going to have URLs as Plain URLS (http://mysite.com/news), then Replace this Line with :
if (preg_match("/\/(administration)\//", $current_page)) {
define("TRUE_PHP_SELF", $current_page);
}
else if (preg_match("/".preg_replace("/([a-zA-Z0-9_]+)(\.php|\.html)?/", "$1", $settings['opening_page'])."/", preg_replace("/\/([a-zA-Z0-9_]+)(\.php|\.html)?/", "$1", $current_page))) {
define("TRUE_PHP_SELF", preg_replace("/\/([a-zA-Z0-9_]+)(\.php|\.html)?/", "/$1", $current_page));
}
else {
define("TRUE_PHP_SELF", $current_page);
}
Category Forum
Panels and InfusionsLabels
None yet
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions