phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
[Archive] phpBB SEO Mixed mod Rewrite V 0.0.2
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Mixed mod rewrite
::  
Author Message
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[Archive] phpBB SEO Mixed mod Rewrite V 0.0.2Posted: 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 Wink

++

_________________
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
Visit poster's website
swollenpickles



Joined: 18 Dec 2006
Posts: 18

[Archive] phpBB SEO Mixed mod Rewrite V 0.0.2Posted: Wed Dec 27, 2006 11:35 am    Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2

Cool thanks. I change my htaccess as you suggested and everything seems to be working fine. Only problem is that now with my forum, all the links work until I go to click on a post link.
eg. the level works:
http://www.edu-hq.com/forum/pre-school-and-early-years-vf4.html

this level doesn't work:
http://www.edu-hq.com/forum/topic40.html
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[Archive] phpBB SEO Mixed mod Rewrite V 0.0.2Posted: 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 Wink

_________________
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
Visit poster's website
swollenpickles



Joined: 18 Dec 2006
Posts: 18

[Archive] phpBB SEO Mixed mod Rewrite V 0.0.2Posted: 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!!!! Very Happy
Back to top
miki24686



Joined: 28 Dec 2006
Posts: 6

[Archive] phpBB SEO Mixed mod Rewrite V 0.0.2Posted: 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?? Sad Sad
Back to top
miki24686



Joined: 28 Dec 2006
Posts: 6

[Archive] phpBB SEO Mixed mod Rewrite V 0.0.2Posted: 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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[Archive] phpBB SEO Mixed mod Rewrite V 0.0.2Posted: 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 Wink

Anyway welcome Very Happy

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 Wink

++

_________________
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
Visit poster's website
miki24686



Joined: 28 Dec 2006
Posts: 6

[Archive] phpBB SEO Mixed mod Rewrite V 0.0.2Posted: 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 Very Happy
Back to top
miki24686



Joined: 28 Dec 2006
Posts: 6

[Archive] phpBB SEO Mixed mod Rewrite V 0.0.2Posted: 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? Very Happy
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[Archive] phpBB SEO Mixed mod Rewrite V 0.0.2Posted: Fri Dec 29, 2006 12:48 pm    Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2

Maybe this thread will help out Wink

++

_________________
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
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[Archive] phpBB SEO Mixed mod Rewrite V 0.0.2Posted: Tue Jan 23, 2007 1:47 am    Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2

0.2.0 update for this mod is out Wink

Updating is easy, but you'll have to make sure all the patches you're using are up to date too.

All patches will be updated and released real soon.

++

_________________
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
Visit poster's website
esiason14



Joined: 31 Jan 2007
Posts: 3

[Archive] phpBB SEO Mixed mod Rewrite V 0.0.2Posted: 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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[Archive] phpBB SEO Mixed mod Rewrite V 0.0.2Posted: 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 Wink

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
Visit poster's website
esiason14



Joined: 31 Jan 2007
Posts: 3

[Archive] phpBB SEO Mixed mod Rewrite V 0.0.2Posted: 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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

[Archive] phpBB SEO Mixed mod Rewrite V 0.0.2Posted: Thu Feb 01, 2007 11:35 pm    Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2

Good choice Wink

_________________
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
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Mixed mod rewrite
Page 4 of 4 Goto page Previous  1, 2, 3, 4

Navigation Similar Topics

Jump to: