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  
 
   
Need help setting Up in Windows IIS environment
Goto page 1, 2  Next
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Simple SEO URL
::  
Author Message
jeremyotten



Joined: 29 May 2008
Posts: 35

Need help setting Up in Windows IIS environmentPosted: Sat May 31, 2008 3:08 pm    Post subject: Need help setting Up in Windows IIS environment

OK I have the Simple MOD installed in phpbb. And activated some things. Created an .htaccess file selected that it would be copied to the forum dir and not the ROOT. Then copied it from the case to the forum.

C:\inetpub\wwwroot\PHPBB3

I Get page not found errors when I click on forums.

Here are my questions.

1. I have ISAPI_REWRITE Lite. Do I need the FULL (it costs a 99 dollars???)
2. Is there an other widely used ISAPI_REWRITE filter which I should be using.
3. Do I need to edit my php.ini to activate that ISAPi_REWRITE plugin then?
4. There was also something with httpd.ini which you should do something with in a windows environment.

Could someone please make al this clear so that I can get it al to work! Wink

Thanx in Advance
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14131

Need help setting Up in Windows IIS environmentPosted: Mon Jun 02, 2008 9:28 am    Post subject: Re: Need help setting Up in Windows IIS environment

Yes, you can use httpd.ini and isapi_rewrite lite with our SEOmods, look at these topics : http://www.phpbb-seo.com/boards/advanced-seo-url/discussions-vt2163.html
http://www.phpbb-seo.com/boards/phpbb-mod-rewrite/discussions-vt1075.html

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
jeremyotten



Joined: 29 May 2008
Posts: 35

Need help setting Up in Windows IIS environmentPosted: Mon Jun 02, 2008 11:48 am    Post subject: Re: Need help setting Up in Windows IIS environment

Ok here is my generated .htaccess file can you update it to a ISAPI_REWRITE v 3 file..



Code:
# Lines That should already be in your .htacess
<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 - SIMPLE
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX
RewriteRule ^forum\.html$ /\/index.php [QSA,L,NC]
# FORUM
RewriteRule ^forum([0-9]+)/?(page([0-9]+)\.html)?$ /\/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^forum([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /\/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/topic([0-9]+)(-([0-9]+))?\.html$ /\/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^[a-z0-9_-]*/?topic([0-9]+)(-([0-9]+))?\.html$ /\/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES THROUGH USERNAME
RewriteRule ^member/([^/]+)/?$ /\/memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /\/search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /\/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /\/viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^active-topics(-([0-9]+))?\.html$ /\/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^unanswered(-([0-9]+))?\.html$ /\/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^newposts(-([0-9]+))?\.html$ /\/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ /\/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# END PHPBB PAGES
#####################################################
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14131

Need help setting Up in Windows IIS environmentPosted: Mon Jun 02, 2008 12:15 pm    Post subject: Re: Need help setting Up in Windows IIS environment

Try :
Code:
[ISAPI_Rewrite]
#####################################################
# PHPBB SEO REWRITE RULES - SIMPLE
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX
RewriteRule ^/forum\.html$ /index.php [I,L]
# FORUM
RewriteRule ^/forum([0-9]+)/?(page([0-9]+)\.html)?$ /viewforum.php\?f=$1&start=$3 [I,L]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^/forum([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?f=$1&t=$2&start=$4 [I,L]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^/announces/topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?t=$1&start=$3 [I,L]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^/[a-z0-9_-]*/?topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?t=$1&start=$3 [I,L]
# PROFILES THROUGH USERNAME
RewriteRule ^/member/([^/]+)/?$ /memberlist.php\?mode=viewprofile&un=$1 [I,L]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^/member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /search.php\?author=$1&sr=$2&start=$4 [I,L]
# GROUPS ADVANCED
RewriteRule ^/[a-z0-9_-]*-g([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 [I,L]
# ACTIVE TOPICS
RewriteRule ^/active-topics(-([0-9]+))?\.html$ /search.php\?search_id=active_topics&start=$2&sr=topics [I,L]
# UNANSWERED TOPICS
RewriteRule ^/unanswered(-([0-9]+))?\.html$ /search.php\?search_id=unanswered&start=$2&sr=topics [I,L]
# NEW POSTS
RewriteRule ^/newposts(-([0-9]+))?\.html$ /search.php\?search_id=newposts&start=$2&sr=topics [I,L]
# THE TEAM
RewriteRule ^/the-team\.html$ /memberlist.php\?mode=leaders [I,L]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES


In your httpd.ini (must be located in the doamain's root dir, as well as phpBB).

++

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



Joined: 29 May 2008
Posts: 35

Need help setting Up in Windows IIS environmentPosted: Mon Jun 02, 2008 12:25 pm    Post subject: Re: Need help setting Up in Windows IIS environment

I created the httpd.ini config in

C:\Inetpub\wwwroot
and C:\inetpub\wwwroot\PHPBB

NOGO!

Also when I import the httpd.ini in de ISAPI_REWRITE Manager it changes it to

Code:
RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteBase
# unsupported directive: [ISAPI_Rewrite]
# ####################################################
#  PHPBB SEO REWRITE RULES - SIMPLE
# ####################################################
#  AUTHOR : dcz www.phpbb-seo.com
#  STARTED : 01/2006
# ################################
#  FORUMS PAGES
# ##############
#  FORUM INDEX
RewriteRule ^/forum\.html$ /index.php [NC,L]
#  FORUM
RewriteRule ^/forum([0-9]+)/?(page([0-9]+)\.html)?$ /viewforum.php\?f=$1&start=$3 [NC,L]
#  TOPIC WITH VIRTUAL FOLDER
RewriteRule ^/forum([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?f=$1&t=$2&start=$4 [NC,L]
#  GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^/announces/topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?t=$1&start=$3 [NC,L]
#  TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^/[a-z0-9_-]*/?topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?t=$1&start=$3 [NC,L]
#  PROFILES THROUGH USERNAME
RewriteRule ^/member/([^/]+)/?$ /memberlist.php\?mode=viewprofile&un=$1 [NC,L]
#  USER MESSAGES THROUGH USERNAME
RewriteRule ^/member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /search.php\?author=$1&sr=$2&start=$4 [NC,L]
#  GROUPS ADVANCED
RewriteRule ^/[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /memberlist.php\?mode=group&g=$1&start=$3 [NC,L]
#  POST
RewriteRule ^/post([0-9]+)\.html$ /viewtopic.php\?p=$1 [NC,L]
#  ACTIVE TOPICS
RewriteRule ^/active-topics(-([0-9]+))?\.html$ /search.php\?search_id=active_topics&start=$2&sr=topics [NC,L]
#  UNANSWERED TOPICS
RewriteRule ^/unanswered(-([0-9]+))?\.html$ /search.php\?search_id=unanswered&start=$2&sr=topics [NC,L]
#  NEW POSTS
RewriteRule ^/newposts(-([0-9]+))?\.html$ /search.php\?search_id=newposts&start=$2&sr=topics [NC,L]
#  THE TEAM
RewriteRule ^/the-team\.html$ /memberlist.php\?mode=leaders [NC,L]
#  HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES


After that the forum links work. But there are crippled and the images don't appear....
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14131

Need help setting Up in Windows IIS environmentPosted: Mon Jun 02, 2008 1:00 pm    Post subject: Re: Need help setting Up in Windows IIS environment

jeremyotten wrote:
I created the httpd.ini config in

C:\Inetpub\wwwroot
and C:\inetpub\wwwroot\PHPBB

NOGO!


hence :


dcz wrote:
In your httpd.ini (must be located in the doamain's root dir, as well as phpBB).

jeremyotten wrote:

Also when I import the httpd.ini in de ISAPI_REWRITE Manager it changes it to

Code:
RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteBase
# unsupported directive: [ISAPI_Rewrite]



These lines are not present in the httpd.ini I suggested.

So basically, you just need to add phpBB's path, as always, in the rewriterules.

Code:
RewriteRule ^/forum\.html$ /index.php [NC,L]


becomes :

Code:
RewriteRule ^/PHPBB/forum\.html$ /PHPBB/index.php [NC,L]


and so on, and your httpdi.ini sjhould stay in the domain's root (
C:\Inetpub\wwwroot in your case).

++

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



Joined: 29 May 2008
Posts: 35

Need help setting Up in Windows IIS environmentPosted: Mon Jun 02, 2008 1:22 pm    Post subject: Re: Need help setting Up in Windows IIS environment

Ok changed it to:

Code:
RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteBase
# unsupported directive: [ISAPI_Rewrite]
# ####################################################
#  PHPBB SEO REWRITE RULES - SIMPLE
# ####################################################
#  AUTHOR : dcz www.phpbb-seo.com
#  STARTED : 01/2006
# ################################
#  FORUMS PAGES
# ##############
#  FORUM INDEX
RewriteRule ^/phpBB3/forum\.html$ /phpBB3/index.php [NC,L]
#  FORUM
RewriteRule ^/phpBB3/forum([0-9]+)/?(page([0-9]+)\.html)?$ /phpBB3/viewforum.php\?f=$1&start=$3 [NC,L]
#  TOPIC WITH VIRTUAL FOLDER
RewriteRule ^/phpBB3/forum([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /phpBB3/viewtopic.php\?f=$1&t=$2&start=$4 [NC,L]
#  GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^/phpBB3/announces/topic([0-9]+)(-([0-9]+))?\.html$ /phpBB3/viewtopic.php\?t=$1&start=$3 [NC,L]
#  TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^/phpBB3/[a-z0-9_-]*/?topic([0-9]+)(-([0-9]+))?\.html$ /phpBB3/viewtopic.php\?t=$1&start=$3 [NC,L]
#  PROFILES THROUGH USERNAME
RewriteRule ^/phpBB3/member/([^/]+)/?$ /phpBB3/memberlist.php\?mode=viewprofile&un=$1 [NC,L]
#  USER MESSAGES THROUGH USERNAME
RewriteRule ^/phpBB3/member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /phpBB3/search.php\?author=$1&sr=$2&start=$4 [NC,L]
#  GROUPS ADVANCED
RewriteRule ^/phpBB3/[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /phpBB3/memberlist.php\?mode=group&g=$1&start=$3 [NC,L]
#  POST
RewriteRule ^/phpBB3/post([0-9]+)\.html$ /phpBB3/viewtopic.php\?p=$1 [NC,L]
#  ACTIVE TOPICS
RewriteRule ^/phpBB3/active-topics(-([0-9]+))?\.html$ /phpBB3/search.php\?search_id=active_topics&start=$2&sr=topics [NC,L]
#  UNANSWERED TOPICS
RewriteRule ^/phpBB3/unanswered(-([0-9]+))?\.html$ /phpBB3/search.php\?search_id=unanswered&start=$2&sr=topics [NC,L]
#  NEW POSTS
RewriteRule ^/phpBB3/newposts(-([0-9]+))?\.html$ /phpBB3/search.php\?search_id=newposts&start=$2&sr=topics [NC,L]
#  THE TEAM
RewriteRule ^/phpBB3/the-team\.html$ /phpBB3/memberlist.php\?mode=leaders [NC,L]
#  HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES


Now I again get the page not found errors...
Back to top
jeremyotten



Joined: 29 May 2008
Posts: 35

Need help setting Up in Windows IIS environmentPosted: Mon Jun 02, 2008 2:02 pm    Post subject: Re: Need help setting Up in Windows IIS environment

Here you can see in a movie exactly what I mean:

http://randomsolutions.nl/bug-tracker/ISAPI_REWRITE_MOVIE1.html

ENJOY!@! en please help me out. Seems the first code was almost perfect....
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14131

Need help setting Up in Windows IIS environmentPosted: Mon Jun 02, 2008 3:50 pm    Post subject: Re: Need help setting Up in Windows IIS environment

From what I see, on your first try, you do not have 404, but the css fails to load properly because you most likely did not implement the template code change in all you styles (yours seems close to prosilver, the code change set for it should match pretty well).


Once you'll have edited your templates, don't forget to clear phpBB's cache as well.

Then, the httpd.ini I suggested was meant ot be use as is, even though in your case, it apparently works with the mod_rewrite like start command.

++

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



Joined: 29 May 2008
Posts: 35

Need help setting Up in Windows IIS environmentPosted: Mon Jun 02, 2008 5:24 pm    Post subject: Re: Need help setting Up in Windows IIS environment

My style is indeed prosilver. Where can I find the code to change the styles?
Back to top
jeremyotten



Joined: 29 May 2008
Posts: 35

Need help setting Up in Windows IIS environmentPosted: Mon Jun 02, 2008 5:52 pm    Post subject: Re: Need help setting Up in Windows IIS environment

OK I found the premoded style files and applied them empties the cache en refresh the style --> Now it OK! --> When I click the forum no page not found error and the style is OK!

BUT!

now when I want to watch a topic under a forum I get the page not found error. How can I solved this... we are almost there.....

When I go to topic I get

http://frm01.dmxnet.local///forum4/topic5.html

When I change the URL to

http://frm01.dmxnet.local/forum4/topic5.html

it works how to fix this?

Using Simple mode with all options to YES

What need to be changed at this code to let the topics work also?

Code:
RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteBase
# unsupported directive: [ISAPI_Rewrite]
# ####################################################
#  PHPBB SEO REWRITE RULES - SIMPLE
# ####################################################
#  AUTHOR : dcz www.phpbb-seo.com
#  STARTED : 01/2006
# ################################
#  FORUMS PAGES
# ##############
#  FORUM INDEX
RewriteRule ^/forum\.html$ /index.php [NC,L]
#  FORUM
RewriteRule ^/forum([0-9]+)/?(page([0-9]+)\.html)?$ /viewforum.php\?f=$1&start=$3 [NC,L]
#  TOPIC WITH VIRTUAL FOLDER
RewriteRule ^/forum([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?f=$1&t=$2&start=$4 [NC,L]
#  GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^/announces/topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?t=$1&start=$3 [NC,L]
#  TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^/[a-z0-9_-]*/?topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?t=$1&start=$3 [NC,L]
#  PROFILES THROUGH USERNAME
RewriteRule ^/member/([^/]+)/?$ /memberlist.php\?mode=viewprofile&un=$1 [NC,L]
#  USER MESSAGES THROUGH USERNAME
RewriteRule ^/member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /search.php\?author=$1&sr=$2&start=$4 [NC,L]
#  GROUPS ADVANCED
RewriteRule ^/[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /memberlist.php\?mode=group&g=$1&start=$3 [NC,L]
#  POST
RewriteRule ^/post([0-9]+)\.html$ /viewtopic.php\?p=$1 [NC,L]
#  ACTIVE TOPICS
RewriteRule ^/active-topics(-([0-9]+))?\.html$ /search.php\?search_id=active_topics&start=$2&sr=topics [NC,L]
#  UNANSWERED TOPICS
RewriteRule ^/unanswered(-([0-9]+))?\.html$ /search.php\?search_id=unanswered&start=$2&sr=topics [NC,L]
#  NEW POSTS
RewriteRule ^/newposts(-([0-9]+))?\.html$ /search.php\?search_id=newposts&start=$2&sr=topics [NC,L]
#  THE TEAM
RewriteRule ^/the-team\.html$ /memberlist.php\?mode=leaders [NC,L]
#  HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
Back to top
jeremyotten



Joined: 29 May 2008
Posts: 35

Need help setting Up in Windows IIS environmentPosted: Tue Jun 03, 2008 8:54 am    Post subject: Re: Need help setting Up in Windows IIS environment

jeremyotten wrote:
OK I found the premoded style files and applied them empties the cache en refresh the style --> Now it OK! --> When I click the forum no page not found error and the style is OK!

BUT!

now when I want to watch a topic under a forum I get the page not found error. How can I solved this... we are almost there.....

When I go to topic I get

http://frm01.dmxnet.local///forum4/topic5.html

When I change the URL to

http://frm01.dmxnet.local/forum4/topic5.html

it works how to fix this?

Using Simple mode with all options to YES

What need to be changed at this code to let the topics work also?

Code:
RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteBase
# unsupported directive: [ISAPI_Rewrite]
# ####################################################
#  PHPBB SEO REWRITE RULES - SIMPLE
# ####################################################
#  AUTHOR : dcz www.phpbb-seo.com
#  STARTED : 01/2006
# ################################
#  FORUMS PAGES
# ##############
#  FORUM INDEX
RewriteRule ^/forum\.html$ /index.php [NC,L]
#  FORUM
RewriteRule ^/forum([0-9]+)/?(page([0-9]+)\.html)?$ /viewforum.php\?f=$1&start=$3 [NC,L]
#  TOPIC WITH VIRTUAL FOLDER
RewriteRule ^/forum([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?f=$1&t=$2&start=$4 [NC,L]
#  GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^/announces/topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?t=$1&start=$3 [NC,L]
#  TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^/[a-z0-9_-]*/?topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?t=$1&start=$3 [NC,L]
#  PROFILES THROUGH USERNAME
RewriteRule ^/member/([^/]+)/?$ /memberlist.php\?mode=viewprofile&un=$1 [NC,L]
#  USER MESSAGES THROUGH USERNAME
RewriteRule ^/member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /search.php\?author=$1&sr=$2&start=$4 [NC,L]
#  GROUPS ADVANCED
RewriteRule ^/[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /memberlist.php\?mode=group&g=$1&start=$3 [NC,L]
#  POST
RewriteRule ^/post([0-9]+)\.html$ /viewtopic.php\?p=$1 [NC,L]
#  ACTIVE TOPICS
RewriteRule ^/active-topics(-([0-9]+))?\.html$ /search.php\?search_id=active_topics&start=$2&sr=topics [NC,L]
#  UNANSWERED TOPICS
RewriteRule ^/unanswered(-([0-9]+))?\.html$ /search.php\?search_id=unanswered&start=$2&sr=topics [NC,L]
#  NEW POSTS
RewriteRule ^/newposts(-([0-9]+))?\.html$ /search.php\?search_id=newposts&start=$2&sr=topics [NC,L]
#  THE TEAM
RewriteRule ^/the-team\.html$ /memberlist.php\?mode=leaders [NC,L]
#  HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES


OK I solved this problem by changing the lines

Code:
  TOPIC WITH VIRTUAL FOLDER
RewriteRule ^/forum([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?f=$1&t=$2&start=$4 [NC,L]
#  GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^/announces/topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?t=$1&start=$3 [NC,L]
#  TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^/[a-z0-9_-]*/?topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?t=$1&start=$3 [NC,L]


to

Code:
  TOPIC WITH VIRTUAL FOLDER
RewriteRule ^///forum([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?f=$1&t=$2&start=$4 [NC,L]
#  GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^///announces/topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?t=$1&start=$3 [NC,L]
#  TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^///[a-z0-9_-]*/?topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php\?t=$1&start=$3 [NC,L]


Now I have still 2 problem. When I login to the forum its OK. Then its says redirecting back to forum and gives me a page not found on this URL

http://frm01.dmxnet.local/forum.html?sid=24375d52457b3335938094d2387ed047

Whill it would just have to redirect me to

http://frm01.dmxnet.local/forum.html to let it work. How to solve this?

Also when I do a search on for example DVD it gives me results OK. But then when I click on the result link

http://frm01.dmxnet.local/post6.html?hilit=dvd#p6

I get the page cannot be found error again
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

Need help setting Up in Windows IIS environmentPosted: Tue Jun 03, 2008 9:39 am    Post subject: Re: Need help setting Up in Windows IIS environment

For the double slash issue, make sure that you do not have double slashes in your configured server domain and script path in the phpBB config.

If not, we'll have to figure out where windows added it, should be easily filtered in phpbb_seo_class.php, around this line :

Code:
      $script_path = (empty($script_path) ) ? '' : $script_path . '/';


About -http://frm01.dmxnet.local/forum.html?sid=24375d52457b3335938094d2387ed047 being a 404, it an issue with the isapi_rewrite module, apparently there is no equivalent to the mod_rewrite QSA flag.

Try to replace :

Code:
RewriteRule ^/forum\.html$ /index.php [NC,L]


With :
Code:

RewriteRule ^/forum\.html(?:\?(.*))? /index.php?1\?$1: [NC,L]


I cannot test this, but if it works as expected, we'll have to adapt the other rewriterules accordingly Wink

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



Joined: 29 May 2008
Posts: 35

Need help setting Up in Windows IIS environmentPosted: Tue Jun 03, 2008 9:54 am    Post subject: Re: Need help setting Up in Windows IIS environment

SeO wrote:
For the double slash issue, make sure that you do not have double slashes in your configured server domain and script path in the phpBB config.

If not, we'll have to figure out where windows added it, should be easily filtered in phpbb_seo_class.php, around this line :

Code:
      $script_path = (empty($script_path) ) ? '' : $script_path . '/';


About -http://frm01.dmxnet.local/forum.html?sid=24375d52457b3335938094d2387ed047 being a 404, it an issue with the isapi_rewrite module, apparently there is no equivalent to the mod_rewrite QSA flag.

Try to replace :

Code:
RewriteRule ^/forum\.html$ /index.php [NC,L]


With :
Code:

RewriteRule ^/forum\.html(?:\?(.*))? /index.php?1\?$1: [NC,L]


I cannot test this, but if it works as expected, we'll have to adapt the other rewriterules accordingly Wink


This is what is in my Class file

Code:
      // --> DOMAIN SETTING <-- //
      // Path Settings, only rely on DB
      $server_protocol = ($config['server_protocol']) ? $config['server_protocol'] : (($config['cookie_secure']) ? 'https://' : 'http://');
      $server_name = trim($config['server_name'], '/') . '/';
      $server_port = (int) $config['server_port'];
      $server_port = ($server_port <> 80) ? ':' . $server_port : '';
      $script_path = trim($config['script_path'], '/');
      $script_path = (empty($script_path) ) ? '' : $script_path . '/';
      $this->seo_path['root_url'] =  $server_protocol . $server_name;
      $this->seo_path['phpbb_urlR'] = $this->seo_path['phpbb_url'] =  $this->seo_path['root_url'] . $script_path;
      $this->seo_path['phpbb_script'] =  $script_path;
      // Array of the filenames that may require the use of a base href tag.
      $this->seo_opt['file_hbase'] = array('viewtopic', 'viewforum', 'memberlist', 'search');
      // virtual root option
      if ($this->seo_opt['virtual_root']) {
         $this->seo_path['phpbb_urlR'] = $this->seo_path['root_url'];
         $this->seo_opt['file_hbase'][] = 'index';
         $this->seo_static['index'] = empty($this->seo_static['index']) ? 'forum' : $this->seo_static['index'];


The code for the login redirect WORKED!

Now we have another problem.

When we get a post reply in my email. I get this link

http://frm01.dmxnet.local/\/viewtopic.php?f=8&t=9&p=14&e=14

When I click it and I am not logged on. Is asked me to login en redirects me to

http://frm01.dmxnet.local/post14.html?e=14&sid=a27b9d13eb2df0fcbe705206773a6409

giving a page not found error.
BUT When I already have logged on and set cookie automatically login the redirect from http://frm01.dmxnet.local/\/viewtopic.php?f=8&t=9&p=14&e=14 Goes OK!

Also this redirect is still not working:
when I do a search on for example DVD it gives me results OK. But then when I click on the result link

http://frm01.dmxnet.local/post6.html?hilit=dvd#p6

I get the page cannot be found error again
Back to top
jeremyotten



Joined: 29 May 2008
Posts: 35

Need help setting Up in Windows IIS environmentPosted: Tue Jun 03, 2008 10:14 am    Post subject: Re: Need help setting Up in Windows IIS environment

Sorry the /// Problem was indeed solved by removing just / from the phpbb location path.. weird but it worked.

Now only these items remain


When we get a post reply in my email. I get this link

http://frm01.dmxnet.local/\/viewtopic.php?f=8&t=9&p=14&e=14

When I click it and I am not logged on. Is asked me to login en redirects me to

http://frm01.dmxnet.local/post14.html?e=14&sid=a27b9d13eb2df0fcbe705206773a6409

giving a page not found error.
BUT When I already have logged on and set cookie automatically login the redirect from http://frm01.dmxnet.local/\/viewtopic.php?f=8&t=9&p=14&e=14 Goes OK!

Also this redirect is still not working:
when I do a search on for example DVD it gives me results OK. But then when I click on the result link

http://frm01.dmxnet.local/post6.html?hilit=dvd#p6

I get the page cannot be found error again
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Simple SEO URL
Page 1 of 2 Goto page 1, 2  Next

Navigation Similar Topics

Jump to: