| :: |
| Author |
Message |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Wed Dec 27, 2006 10:35 am Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
Well the forum rewriterules do works nicely.
You just need to only start mod_rewrite once :
| Code: | Options +FollowSymlinks
RewriteEngine On
RewriteBase /
#here the www rule
RewriteCond %{HTTP_HOST} !^www\.edu-hq\.com$ [NC]
RewriteRule ^(.*)$ http://www.edu-hq.com/$1 [R=301,L]
# FORUM PROTECTION RULE
RewriteRule ^forum/.+/([^/]+\.html)$ /forum/index.php [R=301,L]
# CATEGORIES
RewriteRule ^forum/.+-vc([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum/.+-vf([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum/.+-vf([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^forum/.+-vt([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^forum/.+-vt([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L]
# BEGIN WordPress
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
|
Now as said in the www prefix thread, you'll may need to tweak a bit the www rule before it will work nicely, but the principle is here
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
|
 |
swollenpickles
Joined: 18 Dec 2006 Posts: 18
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Wed Dec 27, 2006 11:39 am Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
These two rules :
| Code: | # PAGINATED TOPIC
RewriteRule ^forum/.+-vt([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^forum/.+-vt([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L] |
Are from the advanced mod rewrite, so you should use :
| Code: | # 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] |
Instead  |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
swollenpickles
Joined: 18 Dec 2006 Posts: 18
|
Posted: Wed Dec 27, 2006 11:50 am Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
Cool it's all working again thanks!!!!  |
|
|
| Back to top |
|
 |
miki24686
Joined: 28 Dec 2006 Posts: 6
|
Posted: Thu Dec 28, 2006 8:26 pm Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
mmm, I installed the whole MOD(also patch for simple sub forums), but my forum isn´t working:
| Code: | Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@ande.sk and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache Server at hpcafe.info Port 80 |
I´m not sure with configuration .htaccess, because my forum is in root such like this:
root-backup
-data
-logs
-public_html-here is installed my phpbb
I try it with this .htaccess:
| Code: | Options +FollowSymlinks
RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L]
# CATEGORIES
RewriteRule ^.+-vc([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^.+-vf([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^.+-vf([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^topic([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^topic([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
##################################################### |
can anybody helps me??  |
|
|
| Back to top |
|
 |
miki24686
Joined: 28 Dec 2006 Posts: 6
|
Posted: Thu Dec 28, 2006 8:41 pm Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
| anyb? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Thu Dec 28, 2006 10:57 pm Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
A bit fast for a bump
Anyway welcome
So you do put you .htaccess in the public_html/ folder.
hum.
Try getting rid of :
| Code: | | Options +FollowSymlinks |
And eventually of all slashes ("/") right before the phpbb script file-names in the rewriterules eg :
| Code: | # FORUM PROTECTION RULE
RewriteRule ^.+/([^/]+\.html)$ index.php [R=301,L]
# CATEGORIES
RewriteRule ^.+-vc([0-9]+)\.html$ index.php?c=$1 [QSA,L]
... |
Then, is could as well be because of file transfer, but I doubt.
Your server is Apache, but still, check if mod_rewrite is available on your server as well. If so, it will work
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
miki24686
Joined: 28 Dec 2006 Posts: 6
|
Posted: Thu Dec 28, 2006 11:34 pm Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
heh, i ve posted the second post and later i wanted to delete it but i could not, so i edited it to anyb...i´m sorry
anyway i´m going to try it..thanks a lot  |
|
|
| Back to top |
|
 |
miki24686
Joined: 28 Dec 2006 Posts: 6
|
Posted: Fri Dec 29, 2006 12:11 pm Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
so i completely installed this mod(mixed seo) but i have probs with alphabet-
i´m from slovakia and we use hiccups and letters like this: ľščťžýáíé, for example:
my first forum is called Čítajte ako prvé so the url would be http://hpcafe.info/citajte-ako-prve-vf1.html, but it is something like this:
hpcafe.info/yun-tajte-ako-prvn-vf1.html
So, is there anybody out there, who could help me?  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
esiason14
Joined: 31 Jan 2007 Posts: 3
|
Posted: Thu Feb 01, 2007 4:37 am Post subject: Code not FOUND |
|
|
This piece of code is not in my index.php.
| Code: |
if (isset($display_categories[$cat_id]) && $display_categories[$cat_id])
{ |
Currently using 2.0.21. Any ideas? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Thu Feb 01, 2007 11:22 am Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
Well first, make sure you're not using the 0.0.2, but the 0.2.0 versions
Then, is you can't find this part with 0.21, it most likely means that you did not update properly as I think this should already be added in 0.21.
By the way, updating to 0.22 is not too much work, you should do it.
So please make sure about your index.php file, if it was not too heavily modded, you can compare it with a fresh phpBB 0.22 one, using winmerge for example.
It this part was modded by a mod, which I kind of doubt, please tell us more about it.
As well, we shall continue this on another thread since this one is dedicated to the older version support, mostly for historical purposes.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
esiason14
Joined: 31 Jan 2007 Posts: 3
|
Posted: Thu Feb 01, 2007 5:44 pm Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
| Thanks. This is for a heavily modded forum. I will update to .22 first and then try. Thansk!! |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

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