| :: |
| Author |
Message |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: Tue Sep 18, 2007 5:52 pm Post subject: error after update |
|
|
welcome dcz
after i install new version of simple mod rewrite i have this error
in my index page
| Code: |
Fatal error: Call to undefined function: seo_cond() in /home/mohamed/public_html/forum/index.php on line 27
|
 |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3482
|
Posted: Tue Sep 18, 2007 6:11 pm Post subject: Re: error after update |
|
|
As always, you need to add the zero duplicate function in the phpbb_seo_class.php file again, since you overwrote the older one.
| Quote: | _________
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. |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: Tue Sep 18, 2007 6:13 pm Post subject: Re: error after update |
|
|
| 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.
| Quote: | _________
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. |
thanks dcz it work fine now
but my forums links is working like
-http://www.paramegsoft.com/forum/forum1.html
it should be like
-http://www.paramegsoft.com/forum/forum1/
 |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3482
|
Posted: Tue Sep 18, 2007 6:20 pm Post subject: Re: error after update |
|
|
It's only the default, you can change it :
| Quote: | => 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: | | $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' => ''); |
|
You can thus replace :
with :
And generate a new .htaccess. |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3482
|
Posted: Tue Sep 18, 2007 6:37 pm Post subject: Re: error after update |
|
|
Replace :
| Code: | | RewriteRule ^forum/forum([0-9]+)/?(page([0-9]+)\.html)?$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC] |
With :
| Code: | | RewriteRule ^forum/forum([0-9]+)(/|\.html)?(page([0-9]+)\.html)?$ /forum/viewforum.php?f=$1&start=$4 [QSA,L,NC] |
In your .htaccess. This together with the zero duplicate will always be required in your case, since you played with more than one URL standard online. |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: Tue Sep 18, 2007 6:37 pm Post subject: Re: error after update |
|
|
after my edite the zero dupe not work
my forums links im my index page work like
-http://www.paramegsoft.com/forum/viewforum.php?f=1 |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3482
|
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: Tue Sep 18, 2007 6:44 pm Post subject: Re: error after update |
|
|
| SeO wrote: | Have you activated URL rewriting in ACP ?
I though it was working, was it at some point ? |
yes i acivate it now
but i stell have no redirct from
-http://www.paramegsoft.com/forum/forum1.html
to
-http://www.paramegsoft.com/forum/forum1/
it was work in the smpl_phpbb3_mod_rewriteV0-2-0RC3INT01  |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: Tue Sep 18, 2007 6:57 pm Post subject: Re: error after update |
|
|
i mean dcz i was have 301 redirct from my urls which i was use in PHPBB2
and when i used PHPBB3 my forums urls be like that
-http://www.paramegsoft.com/forum/forum1/
but it was making 301 redirct to my new urls after i used it
from
-http://www.paramegsoft.com/forum/forum1.html
to
-http://www.paramegsoft.com/forum/forum1/
this my .htacces codes
| Code: |
#########################################################
# 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
#####################################################
|
|
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
mhmdkhamis PR4

Joined: 26 Nov 2006 Posts: 436 Location: egypt
|
Posted: Tue Sep 18, 2007 7:01 pm Post subject: Re: error after update |
|
|
BIG OOPS dcz
i was not activate ZERO DUPE from my ACP
sorry dcz  |
_________________ برامج |برامج مجانية|العاب |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14814
|
|
| Back to top |
|
 |
|
|