[Project] Developing IIS mod rewrite

Discussions and support about the different URL Rewriting techniques for phpBB2.

Moderator: Moderators

[Project] Developing IIS mod rewrite

Postby rick74 » Tue Sep 05, 2006 7:56 pm

In this topic we are trying to setup a toolkit for IIS mod rewrite, until now this was very difficult because the lack of an .htacces file on a IIS server.

The members of this forum can follow the progess of this project live on an actual IIS server. I wil post the link in few days.


With the help of a little bit of free software we are going to produce a httpd.ini file which can do the same as a .htacces, only the rewrite rules look different

The first step is installing a brand new phpbb forum in a new subfolder

Second step is installing the httpd.ini file in the same folder as the forum.

When this is ready i will post the link, then we can change code from the
phpBB SEO Advanced mod Rewrite bit by bit and try different rewrite rules.

To be continued............
rick74
phpBB SEO Team
phpBB SEO Team
 
Posts: 64
Joined: Sat Jul 01, 2006 8:29 pm

Advertisement

Postby dcz » Tue Sep 05, 2006 8:11 pm

This is an excellent idea I am glad you had.

The adaptation you where already able to set up for the mx sitemaps module is good hope for a quick solution.

Actually, I am very happy to see such a project like this comes out here, and I am sure we'll be useful to many.

You're our Sir IIS so far :D, I'll back up you on the mod's code if needed and will as well start interesting more into IIS, as I must admit, I just never installed it so far.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21407
Joined: Fri Apr 28, 2006 9:03 pm

Postby rick74 » Thu Sep 07, 2006 5:32 pm

So the first step is ready, testing board is up
Here's the link:
-http://forum dot bouwlink dot nl (Replace the dot for a .) because we don't want the testing board to be indexed yet.

Nest thing is replacing an old backup so there is exually something to rewrite.
There where some diffculties because php.ini allows yoou only to replace a backup not larger than 8 mb, and the old backup i have is larger.
rick74
phpBB SEO Team
phpBB SEO Team
 
Posts: 64
Joined: Sat Jul 01, 2006 8:29 pm

Postby dcz » Thu Sep 07, 2006 5:40 pm

For the db, you could cut it into several parts to make it easier or, but I don't know how to deal with this on windows servers, but, there must be a way to directly import an sql dump whatever it's size, accessing the sql server directly.

Anyway, all is required for now is a bit of content to test, as you'll probably have to reinstall your db before you go online with your new domain.
Or even better, you'll just link this new phpBB install to the db being now used by the online one, assuming you'll as well use the same mods in you new forum.

I could register and start posting, two of us will have a forum with two pages of topic and a topic with more than one page in no time ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21407
Joined: Fri Apr 28, 2006 9:03 pm

It's Working !!!!!!!!!

Postby rick74 » Mon Sep 11, 2006 7:06 pm

I just installed the advanced seo mod and it's working. Just some small modifications to translate the .htacces file into isapi rewrite.

this rules are now in isapi rewrite

Code: Select all
[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]
# 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 [I,L]


Now we just have to implement the other rules and get the next mod.

Oh and i've just changed the template to one where iám going to start from to implement the forum into the website
rick74
phpBB SEO Team
phpBB SEO Team
 
Posts: 64
Joined: Sat Jul 01, 2006 8:29 pm

Postby rick74 » Tue Sep 12, 2006 6:33 pm

Just set the last rules into isapi and they are all working except the 301.

301 redirect is completely different on a IIS server

The code is now

Code: Select all
[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]
# 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 [I,L]
# FORUM PROTECTION RULE
RewriteRule /.+/([^/]+\.html)$ / [R=301,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
rick74
phpBB SEO Team
phpBB SEO Team
 
Posts: 64
Joined: Sat Jul 01, 2006 8:29 pm

Postby rick74 » Tue Sep 12, 2006 7:37 pm

Managed to get a simple 301 to work

To drop the index.php with a 301

RewriteRule /index.php http://forum.bouwlink.nl/ [I,O,RP,L]
rick74
phpBB SEO Team
phpBB SEO Team
 
Posts: 64
Joined: Sat Jul 01, 2006 8:29 pm

Postby rick74 » Wed Sep 13, 2006 7:13 pm

We are ready to launch a IIS advanced mod rewrite now.

Also added mx sitemaps this evening.
rick74
phpBB SEO Team
phpBB SEO Team
 
Posts: 64
Joined: Sat Jul 01, 2006 8:29 pm

Postby dcz » Wed Sep 13, 2006 7:27 pm

Very nice :D

Have you checked all patches ?

This post tells pretty much everything : http://boards.phpbb-seo.com/phpbb-seo-mods/mx-site-map-module-vt4-45.html#1238

besides this http://boards.phpbb-seo.com/phpbb-seo-mods/mx-site-map-module-vt4-45.html#1513 ;)

I'll make it easier in the future.

I see the rewriterules works very nice. You'll see, this will help out quite a lot for PageRank Transmission.
Next Google dance will tel us more about how it is working on this site, but I am sure it's going to be good ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21407
Joined: Fri Apr 28, 2006 9:03 pm

Postby rick74 » Wed Sep 13, 2006 8:26 pm

All done :wink:
rick74
phpBB SEO Team
phpBB SEO Team
 
Posts: 64
Joined: Sat Jul 01, 2006 8:29 pm

Postby dcz » Wed Sep 13, 2006 9:05 pm

But I don't see any link to mx Sitemaps, I see it working well though.
You need links for bots to find this one.
Then check if you applied the two patches allowing you to actually output the last active topic list in the forum index map and to properly display categories in the sitemap index (you have to create some from acp, look at how I set it).

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21407
Joined: Fri Apr 28, 2006 9:03 pm

Postby rick74 » Sun Sep 17, 2006 12:42 pm

Sorry in did not have any toime this last week...

The forum will be live in the new design for bouwlink.nl so i'm gonna make a new overall header and footer with the static links to the sitemaps.

The css will be new also, the only that stays is the table from viewtopic viewforum ect.......

i found two thing's that don't work right....

The jump box doesn't work with the forum categories, and the "breadcrumps" link on top link's three times to index.php
rick74
phpBB SEO Team
phpBB SEO Team
 
Posts: 64
Joined: Sat Jul 01, 2006 8:29 pm

Postby dcz » Sun Sep 17, 2006 2:11 pm

Actually, jumpbox does not jump to categories by default, browse phpBB.com to see it.

About this site, don't forget the simple sub forum mod is adding some sub levels in the jump box, but they are not categories.

The forum jumps are strange in your case, but works, I don't know what could make the sid and forum id not to show up in your case, this part is left untouched by the phpBB SEO mod rewrites.

The fact the zero dupe was not activated in this case seems to tell us all vars went passe through a $_POST method, instead of the regular $_GET in this case.

I'll take a look at this and will put together something to circumvent this issue.

But you can go online as his, as long as you disallow viewforum.php in your robots.txt ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21407
Joined: Fri Apr 28, 2006 9:03 pm

Postby rick74 » Tue Sep 19, 2006 8:15 pm

I excepted the jumpbox from logged out users so there's no need for it anymore.
To be sure i've also excepted viewforum in my robot's text.

Almost finisched now :P :P :P
rick74
phpBB SEO Team
phpBB SEO Team
 
Posts: 64
Joined: Sat Jul 01, 2006 8:29 pm

Postby rick74 » Sun Oct 01, 2006 6:50 pm

We are having a little trouble copying the large database, but we are gonna do it by hand now, first we're gonna try the topics to test the forum.

Mods added

google mx sitemap (not working yet0
simular topics (modded)
rick74
phpBB SEO Team
phpBB SEO Team
 
Posts: 64
Joined: Sat Jul 01, 2006 8:29 pm

Next

Return to phpBB2 mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 10 guests