after i install new version of simple mod rewrite i have this error
in my index page
- Code: Select all
Fatal error: Call to undefined function: seo_cond() in /home/mohamed/public_html/forum/index.php on line 27
Moderator: Moderators
Fatal error: Call to undefined function: seo_cond() in /home/mohamed/public_html/forum/index.php on line 27

_________
WARNING :
_________
There is no step by step update of the phpbb_seo_class.php file, but the cached settings will remain untouched.
You will though have to mod this file again in case you added the zero duplicate as well as the delimiters static parts and etc ...
As well, you will have to empty the phpBB/cache/ folder before the mod will fully work,
just delete all files BUT the .htaccess.

SeO wrote:As always, you need to add the zero duplicate function in the phpbb_seo_class.php file again, since you overwrote the older one._________
WARNING :
_________
There is no step by step update of the phpbb_seo_class.php file, but the cached settings will remain untouched.
You will though have to mod this file again in case you added the zero duplicate as well as the delimiters static parts and etc ...
As well, you will have to empty the phpBB/cache/ folder before the mod will fully work,
just delete all files BUT the .htaccess.
Don't worry, it's only few code change.

=> The first setting to do is to select which static part to use in your URLs.
To do so, you can modify this in phpbb_seo/phpbb_seo_class.php :
=> the-team :
'leaders' => 'the-team'
=> announces :
'global_announce' => 'announces'
=> As well as forum ('forum' => 'forum'), topic ('topic' => 'topic'), post ('post' => 'post') and member ('user' = 'member')
=> And the suffixes, if you don not like .html :
- Code: Select all
$this->seo_ext = array( 'forum' => '.html', 'topic' => '.html', 'post' => '.html', 'user' => '.html', 'index' => (!empty($this->seo_static['index']) ? '.html' : ''), 'global_announce' => '/', 'leaders' => '.html', 'gz_ext' => '');
'forum' => '.html''forum' => '/'

RewriteRule ^forum/forum([0-9]+)/?(page([0-9]+)\.html)?$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]RewriteRule ^forum/forum([0-9]+)(/|\.html)?(page([0-9]+)\.html)?$ /forum/viewforum.php?f=$1&start=$4 [QSA,L,NC]


SeO wrote:Have you activated URL rewriting in ACP ?
I though it was working, was it at some point ?

#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^forum/index\.html$ /forum/index.php [QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^forum/.*/([^/]+\.html)$ /forum/index.php [R=301,L]
# CATEGORIES
RewriteRule ^forum/cat([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum/forum([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum/forum([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^forum/topic([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^forum/topic([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L]
#####################################################
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^forum/index\.html$ /forum/index.php [QSA,L]
# FORUM
RewriteRule ^forum/forum([0-9]+)(-([0-9]+))?/?$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC
RewriteRule ^forum/forum([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# TOPIC WITHOUT FORUM URLS
RewriteRule ^forum/topic([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ /forum/memberlist.php?mode=viewprofile&u=$1 [QSA,L]
# THE TEAM
RewriteRule ^forum/the-team\.html$ /forum/memberlist.php?mode=leaders [QSA,L,NC]
# END PHPBB PAGES
#####################################################


Users browsing this forum: No registered users and 4 guests