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  
 
   
Isapi_rewrite phpBB3
Goto page 1, 2  Next
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
robot_dika



Joined: 24 Oct 2007
Posts: 11

Isapi_rewrite phpBB3Posted: Thu Feb 21, 2008 1:57 pm    Post subject: Isapi_rewrite phpBB3

Hello!

Thank's for your support.

I've istalled the phpbb seo on my windows server but I've a problem.

The httpd.ini is on the main root:

Code:

[ISAPI_Rewrite]

RewriteEngine On

# CATEGORIES
RewriteRule /.+-vc([0-9]+)\.html$ /index.php\?c=$1 [I,L]
# PAGINATED FORUM
RewriteRule /.+-vf([0-9]+)-([0-9]+)\.html$ /viewforum.php\?f=$1&start=$2 [I,L]
# FORUM
#RewriteRule /.+-vf([0-9]+)\.html$ /viewforum.php\?f=$1 [I,L]
RewriteRule /.+-vf([0-9]+)\.html(?:\?(.*))? /viewforum.php\?f=$1?2&$2: [I,L]
# PAGINATED TOPIC
RewriteRule /.+-vt([0-9]+)-([0-9]+)\.html$ /viewtopic.php\?t=$1&start=$2 [I,L]
# TOPIC
RewriteRule /.+-vt([0-9]+)\.html(?:\?(.*))? /viewtopic.php\?t=$1?2&$2: [I,L]
#RewriteRule /.+-vt([0-9]+)\.html$ /viewtopic.php\?t=$1 [I,L]
# FORUM PROTECTION RULE
#RewriteRule /.+/([^/]+\.html)$ / [I,O,RP,L] 
# POST
RewriteRule /post([0-9]+)\.html$ /viewtopic.php\?p=$1 [I,L]
#PROFILES
RewriteRule /member([0-9]+)\.html$ /profile.php\?mode=viewprofile&u=$1 [I,L]
# END PHPBB PAGES   


I've setted the parameters below:


Activate URL rewriting: yes
URL rewriting type: advanced
Profiles ID removing: yes
SID Removing: yes
Remove small words: no
Virtual Root: no
Forum URL caching: yes
Activate The No duplictate: no

The forum is on http://forum-impresa-lavoro.impresalavoro.eu/impresa

I obtain the 404 error....

Please, could you help me to fix this problem?

Thank's a lot


Last edited by robot_dika on Fri Apr 04, 2008 7:57 am; edited 1 time in total
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

Isapi_rewrite phpBB3Posted: Thu Feb 21, 2008 9:11 pm    Post subject: Re: Isapi_rewrite phpBB3

The .htaccess you posted is the one for phpBB2. Since with phpBB3 there are many .htaccess possibilities, the easiest to help you would be to take you setting as example.

Could you post here the phpBB3 .htaccess you get when you use the .htaccess generation tool in acp ?

The changes are pretty easy, a matter of few changes.

_________________
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
robot_dika



Joined: 24 Oct 2007
Posts: 11

Isapi_rewrite phpBB3Posted: Fri Feb 22, 2008 10:59 am    Post subject: Re: Isapi_rewrite phpBB3

Thank you for your reply, the .htaccess file is:

Code:

<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

# You may need to un-comment the following line
# Options +FollowSymlinks
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION

#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. 'forum' REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^impresa/forum\.html$ /impresa/index.php [QSA,L,NC]
# FORUM
RewriteRule ^impresa/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /impresa/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^impresa/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /impresa/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^impresa/announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /impresa/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^impresa/[a-z0-9_-]*/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /impresa/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES SIMPLE
RewriteRule ^impresa/member([0-9]+)\.html$ /impresa/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES SIMPLE
RewriteRule ^impresa/messages([0-9]+)(-([0-9]+))?\.html$ /impresa/search.php?author_id=$1&sr=posts&start=$3 [QSA,L,NC]
# GROUPS SIMPLE
RewriteRule ^impresa/group([0-9]+)(-([0-9]+))?\.html$ /impresa/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^impresa/post([0-9]+)\.html$ /impresa/viewtopic.php?p=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^impresa/the-team\.html$ /impresa/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^impresa/[a-z0-9_-]+(-([0-9]+))?\.html$ /impresa/viewforum.php?start=$2 [QSA,L,NC]
# END PHPBB PAGES
#####################################################


Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

Isapi_rewrite phpBB3Posted: Mon Feb 25, 2008 3:20 pm    Post subject: Re: Isapi_rewrite phpBB3

All right, here it is :
Quote:

[ISAPI_Rewrite]

#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. 'forum' REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^/impresa/forum\.html$ /impresa/index.php [I,L]
# FORUM
RewriteRule ^/impresa/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /impresa/viewforum.php\?f=$1&start=$3 [I,L]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^/impresa/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /impresa/viewtopic.php\?f=$1&t=$2&start=$4 [I,L]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^/impresa/announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /impresa/viewtopic.php\?t=$1&start=$3 [I,L]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^/impresa/[a-z0-9_-]*/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /impresa/viewtopic.php\?t=$1&start=$3 [I,L]
# PROFILES SIMPLE
RewriteRule ^/impresa/member([0-9]+)\.html$ /impresa/memberlist.php\?mode=viewprofile&u=$1 [I,L]
# USER MESSAGES SIMPLE
RewriteRule ^/impresa/messages([0-9]+)(-([0-9]+))?\.html$ /impresa/search.php\?author_id=$1&sr=posts&start=$3 [I,L]
# GROUPS SIMPLE
RewriteRule ^/impresa/group([0-9]+)(-([0-9]+))?\.html$ /impresa/memberlist.php\?mode=group&g=$1&start=$3 [I,L]
# POST
RewriteRule ^/impresa/post([0-9]+)\.html$ /impresa/viewtopic.php\?p=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^/impresa/the-team\.html$ /impresa/memberlist.php\?mode=leaders [I,L]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteRule ^/impresa/[a-z0-9_-]+(-([0-9]+))?\.html$ /impresa/viewforum.php\?start=$2 [I,L]
# END PHPBB PAGES
#####################################################


I highlighted the isapi_rewrite specific bits in case you one day need to generate a new one.

Unfortunately, I do not have any IIS server to dev on, so this httpd.ini is not 100% perfect.
I did not find any equivalent to the original :
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l


which are making sure that the requested uri does not match a file, a dir or a symlink before the virtual forum without id url rewriterule will be activated.

I'm pretty sure though that there is an equivalent, I just did not find precise documentation on this yet, and again, am unable to test.

This imply as his that all the one level sub dirs will not work, if phpBB is installed in example.com/phpbb/, example.com/phpbb/realdir/ will be treated as a forum that does not exists, example.com/phpbb/realdir/something.soemthing and example.com/phpbb/realdir/somedir/ will work as expected though.

++

_________________
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
robot_dika



Joined: 24 Oct 2007
Posts: 11

Isapi_rewrite phpBB3Posted: Tue Feb 26, 2008 8:55 am    Post subject: Re: Isapi_rewrite phpBB3

Thank You DCZ for your glad support,

I've tried with your httpd.ini file but I think does not work. You can check on http://forum-impresa-lavoro.impresalavoro.eu/impresa and when I clik on a link I obtain the 404 page.

I've tried to add the "Rewritengine on" but I obtain the same result.. Sad

I'm sorry to ask You again, but could you help me to solve this problem? If You need I can give you the password of the IIS server to try it.

Thank's a lot

Wink
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

Isapi_rewrite phpBB3Posted: Sat Mar 01, 2008 4:28 pm    Post subject: Re: Isapi_rewrite phpBB3

Just in case, you did put this code in an httpd.in file located in your domain's root dir (eg where -http://forum-impresa-lavoro.impresalavoro.eu/ leads )?

++

_________________
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
robot_dika



Joined: 24 Oct 2007
Posts: 11

Isapi_rewrite phpBB3Posted: Sat Mar 01, 2008 4:35 pm    Post subject: Re: Isapi_rewrite phpBB3

I've checked it and the httpd.ini is in the right root...

It's in the impresa file..
Back to top
robot_dika



Joined: 24 Oct 2007
Posts: 11

Isapi_rewrite phpBB3Posted: Tue Mar 11, 2008 3:45 pm    Post subject: Re: Isapi_rewrite phpBB3

I pray You,

could you help me to solve this problem? Sad

Thank's a lot..
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

Isapi_rewrite phpBB3Posted: Wed Mar 12, 2008 10:08 am    Post subject: Re: Isapi_rewrite phpBB3

robot_dika wrote:
I've checked it and the httpd.ini is in the right root...

It's in the impresa file..


It must be above the impresa/ directory, in the domain's root (there is only one domain root).

Code:
.htaccess
impresa/


no need to pray, I'm not a saint 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
robot_dika



Joined: 24 Oct 2007
Posts: 11

Isapi_rewrite phpBB3Posted: Fri Apr 04, 2008 7:56 am    Post subject: Re: Isapi_rewrite phpBB3

Hi DCZ!

I've installed a new forum and I've deleted the last one, now it's in the root http://forum-impresa-lavoro.impresalavoro.eu/ and the httpd.ini is in that root.

The file is:

Code:

[ISAPI_Rewrite]

#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. 'forum' REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^/forum\.html$ /index.php [I,L]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /viewforum.php\?f=$1&start=$3 [I,L]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?f=$1&t=$2&start=$4 [I,L]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?t=$1&start=$3 [I,L]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^[a-z0-9_-]*/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?t=$1&start=$3 [I,L]
# PROFILES SIMPLE
RewriteRule ^member([0-9]+)\.html$ /memberlist.php\?mode=viewprofile&u=$1 [I,L]
# USER MESSAGES SIMPLE
RewriteRule ^messages([0-9]+)(-([0-9]+))?\.html$ /search.php\?author_id=$1&sr=posts&start=$3 [I,L]
# GROUPS SIMPLE
RewriteRule ^group([0-9]+)(-([0-9]+))?\.html$ /memberlist.php\?mode=group&g=$1&start=$3 [I,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php\?p=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ /memberlist.php\?mode=leaders [I,L]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteRule ^[a-z0-9_-]+(-([0-9]+))?\.html$ /viewforum.php\?start=$2 [I,L]
# END PHPBB PAGES
#####################################################



I think is wrong a / because when I try to delete it the page is shown..
Doesn't work. When I set the advance seo mod, will be shown blank page error..

Thank's for your support
Back to top
jeff_j_dunlap



Joined: 13 Mar 2008
Posts: 21

Isapi_rewrite phpBB3Posted: Mon Apr 07, 2008 11:30 pm    Post subject: Re: Isapi_rewrite phpBB3

Hello robot_dika:

I'm using a Windows 2003 Web server and since us Windows users do not have mod rewrite built into the web server, I played around with an open source rewrite program, but it had memory leaks, and was not very reliable.

I was not impressed with the author's C code either so I decided to write my own rewrite filter in C++. In my tests, it was about 5 times faster than the open source rewriter, but more importantly it is reliable and does not leak memory.

Additionally, it completely ignores (for speed and a reduction in processing power) any .gif, .jpg, .mid, .jpeg, .midi. This is because there is absolutely no need to run the regular expression engine on any of these files if they will NEVER be rewritten. Other filters will attempt a match against these types of files. This is all about efficiency.

Finally, there is no need to waste time on trying to get the regular expressions working since I have already taken care of the expressions myself. The filter will handle either of these domain environments:

-http://www.example.com/forum/
or
-http://forum.example.com/

I could probably automatically handle the following two domain structures as well, but note that I did not test my expressions against them:

-http://www.example.com/whatever/forum/
or
-http://forum.example.com/whatever/

All that you have to do is to upload the filter and install it in IIS. Please note that I am running a Windows 2003 web server, and I have tested it on Windows XP Professional too. Since it works on Windows XP Professional, it should work on Windows 2000 as well.

If you would like me to send you the dll, just let me know and I will email it to you. If it does not work for you, simply remove it from IIS and try some other filter.

Regards,

Jeff
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

Isapi_rewrite phpBB3Posted: Tue Apr 08, 2008 8:46 am    Post subject: Re: Isapi_rewrite phpBB3

Great Very Happy

You should make a project out of this !

One thing though, .jpg can be url rewritten, we do it for the phpBB2 smartor album for example, to get niece image urls such as pic-title.jpg instead of viewpic.php?blabla

@robot_dika

Again, we miss an IIS server to test this fully, but, this exact httpd.ini is online up and running on a friend server for a root install with isapi_rewrite :

Code:
#phpBB3
# FORUM
RewriteRule ^/[a-z0-9_-]*-v?f([0-9]+)/?(page([0-9]+)\.html)?$ /viewforum.php\?f=$1&start=$3
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^/[a-z0-9_-]*-v?f([0-9]+)/[a-z0-9_-]*-v?t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?f=$1&t=$2&start=$4 [I,L]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^/annonces/[a-z0-9_-]*-v?t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?t=$1&start=$3 [I,L]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^/[a-z0-9_-]*/?[a-z0-9_-]*-v?t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?t=$1&start=$3 [I,L]
# POST
RewriteRule ^/post([0-9]+)\.html$ /viewtopic.php\?p=$1 [I,L]
# PROFILES THROUGH USERNAME
RewriteRule ^/member/([^/]+)/?$ /memberlist.php\?mode=viewprofile&un=$1 [I,L]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^/messages/([^/]+)/?(page([0-9]+)\.html)?$ /search.php\?author=$1&sr=posts&start=$3 [I,L]
#PROFILES
RewriteRule ^/member([0-9]+)\.html$ /memberlist.php\?mode=viewprofile&u=$1 [I,L]
# GROUPS ADVANCED
RewriteRule ^/[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /memberlist.php\?mode=group&g=$1&start=$3 [I,L]
# GROUPS SIMPLE
RewriteRule ^/group([0-9]+)(-([0-9]+))?\.html$ /memberlist.php\?mode=group&g=$1&start=$3 [I,L]
# THE TEAM
RewriteRule ^/equipe\.html$ /phpbb3/memberlist.php\?mode=leaders [I,L]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/[a-z0-9_-]+/?(page([0-9]+)\.html)?$ /viewforum.php\?start=$2 [I,L]

_________________
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
robot_dika



Joined: 24 Oct 2007
Posts: 11

Isapi_rewrite phpBB3Posted: Thu Apr 10, 2008 3:31 pm    Post subject: Re: Isapi_rewrite phpBB3

Thank You Seo for your helping!!

I've tried to load that file in the main root but in my site does not work..

I don't know why..

I've setted the advanced seo mode...
Back to top
jeremyotten



Joined: 29 May 2008
Posts: 35

Isapi_rewrite phpBB3Posted: Sat May 31, 2008 3:40 pm    Post subject: Re: Isapi_rewrite phpBB3

If you guys still need an IIS environment to test with. Just let me know. I could set it up. I also need the MOD to work on my iis system where it now is not working....

im going to try the httpd.ini you created
Back to top
jeremyotten



Joined: 29 May 2008
Posts: 35

Isapi_rewrite phpBB3Posted: Sat May 31, 2008 3:47 pm    Post subject: Re: Isapi_rewrite phpBB3

Tested the httpd.ini --> NOGO! am using the simple mod!

Just let me know if you need that IIS test environment. I really need this problem solved.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 1 of 2 Goto page 1, 2  Next

Navigation Similar Topics

Jump to: