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 Previous  1, 2
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Simple SEO URL
::  
Author Message
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15133

Need help setting Up in Windows IIS environmentPosted: Tue Jun 03, 2008 12:38 pm    Post subject: Re: Need help setting Up in Windows IIS environment

No more double slashes then ?

For the backslash, try to replace :
Code:

      $this->file = basename(@$parsed_url['path']);



with :
Code:

      $this->file = basename(str_replace(array('\\', '//'), '/',@$parsed_url['path']));


Here is the httpd.ini that should work in all cases for you (with the same trick as per forum.html on all rewriterules) :

Code:
#  FORUM INDEX
RewriteRule ^/forum\.html(?:\?(.*))?$ /index.php?1\?$1: [I,L]
#  FORUM
RewriteRule ^/forum([0-9]+)/?(page([0-9]+)\.html)?(?:\?(.*))?$ /viewforum.php\?f=$1&start=$3?4&$4: [I,L]
#  TOPIC WITH VIRTUAL FOLDER
RewriteRule ^/forum([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html(?:\?(.*))?$ /viewtopic.php\?f=$1&t=$2&start=$4?5&$5: [I,L]
#  GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^/announces/topic([0-9]+)(-([0-9]+))?\.html(?:\?(.*))?$ /viewtopic.php\?t=$1&start=$3?4&$4: [I,L]
#  TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^/[a-z0-9_-]*/?topic([0-9]+)(-([0-9]+))?\.html(?:\?(.*))?$ /viewtopic.php\?t=$1&start=$3?4&$4: [I,L]
#  PROFILES THROUGH USERNAME
RewriteRule ^/member/([^/]+)/?(?:\?(.*))?$ /memberlist.php\?mode=viewprofile&un=$1?2&$2: [I,L]
#  USER MESSAGES THROUGH USERNAME
RewriteRule ^/member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?(?:\?(.*))?$ /search.php\?author=$1&sr=$2&start=$4?5&$5: [I,L]
#  GROUPS ADVANCED
RewriteRule ^/[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html(?:\?(.*))?$ /memberlist.php\?mode=group&g=$1&start=$3?4&$4: [I,L]
#  POST
RewriteRule ^/post([0-9]+)\.html(?:\?(.*))?$ /viewtopic.php\?p=$1?2&$2: [I,L]
#  ACTIVE TOPICS
RewriteRule ^/active-topics(-([0-9]+))?\.html(?:\?(.*))?$ /search.php\?search_id=active_topics&start=$2&sr=topics?3&$3: [I,L]
#  UNANSWERED TOPICS
RewriteRule ^/unanswered(-([0-9]+))?\.html(?:\?(.*))?$ /search.php\?search_id=unanswered&start=$2&sr=topics?3&$3: [I,L]
#  NEW POSTS
RewriteRule ^/newposts(-([0-9]+))?\.html(?:\?(.*))?$ /search.php\?search_id=newposts&start=$2&sr=topics?3&$3: [I,L]
#  THE TEAM
RewriteRule ^/the-team\.html(?:\?(.*))?$ /memberlist.php\?mode=leaders ?1&$1:[I,L]
#  HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES


Please note that you'll have to generate a new httpd.ini each time you'll update your settings, as well, this particular one does not allow the use of forum id removing, I can provide with the extra rewriterule if you need it.

++

_________________
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: Tue Jun 03, 2008 12:49 pm    Post subject: Re: Need help setting Up in Windows IIS environment

No more double slashes indeed Wink

your httpd work perfect.

search problem solved
email reply problem also solved!

SUPER!

What will I gain with the
id removing ?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15133

Need help setting Up in Windows IIS environmentPosted: Tue Jun 03, 2008 12:52 pm    Post subject: Re: Need help setting Up in Windows IIS environment

Nicer and shorter urls for forums, especially when using the virtual folder trick, it's :

forum-keyword-fxx/topic-title-txx.html vs forum-keyword/topic-title-txx.html

Not much difference indeed, but still, it's barely not costing anything to get rid of these so ...

_________________
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: Tue Jun 03, 2008 3:46 pm    Post subject: Re: Need help setting Up in Windows IIS environment

Ok please update the ini. Because in ACP I had already activated ALL of the features of Simple MOD Wink

again THANX!
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15133

Need help setting Up in Windows IIS environmentPosted: Wed Jun 04, 2008 8:23 am    Post subject: Re: Need help setting Up in Windows IIS environment

dcz wrote:
Nicer and shorter urls for forums, especially when using the virtual folder trick, it's :

forum-keyword-fxx/topic-title-txx.html vs forum-keyword/topic-title-txx.html

Not much difference indeed, but still, it's barely not costing anything to get rid of these so ...


Sorry, I got lost when replying this, this example only applies to advanced mod, the mixed one can as well use forum id removing, but not the simple one, sorry 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: Thu Jun 05, 2008 9:47 am    Post subject: Re: Need help setting Up in Windows IIS environment

Everything works but 1 link

the-team.html

is the only one giving a page not found error. Can you help me out here?
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3743

Need help setting Up in Windows IIS environmentPosted: Thu Jun 05, 2008 9:49 am    Post subject: Re: Need help setting Up in Windows IIS environment

Replace :

Code:
RewriteRule ^/the-team\.html(?:\?(.*))?$ /memberlist.php\?mode=leaders ?1&$1:[I,L]


with:

Code:
RewriteRule ^/the-team\.html(?:\?(.*))?$ /memberlist.php\?mode=leaders?1&$1:[I,L]


The extra space was the guilty IMO 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: Thu Jun 05, 2008 9:57 am    Post subject: Re: Need help setting Up in Windows IIS environment

Perfect link now works but get mode not selected.. is this normal...
Back to top
jeremyotten



Joined: 29 May 2008
Posts: 35

Need help setting Up in Windows IIS environmentPosted: Thu Jun 05, 2008 10:07 am    Post subject: Re: Need help setting Up in Windows IIS environment

works like this

Code:
RewriteRule ^/the-team\.html(?:\?(.*))?$ /memberlist.php\?mode=leaders?1&$1: [I,L]


Wink
Back to top
jeremyotten



Joined: 29 May 2008
Posts: 35

Need help setting Up in Windows IIS environmentPosted: Mon Jun 09, 2008 10:40 am    Post subject: Re: Need help setting Up in Windows IIS environment

We indexe the phpbb site with Sharepint 2007. The crawler gives backup this error

http://forum.datamex.nl/post29.html
Content for this URL is excluded by the server because a no-index attribute.

how can I fix this?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15133

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

If only post links, there is no need to, I cannot test your online install though, because it's protected, but the message could only mean that you're disallowing such link (as you should) in your robots.txt.

If the topic url are well crawled, then it means that I guessed right and that you do not need to change anything, post links are duplicates of topic ones.

_________________
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 09, 2008 11:59 am    Post subject: Re: Need help setting Up in Windows IIS environment

It was a microsoft issue
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Simple SEO URL
Page 2 of 2 Goto page Previous  1, 2

Navigation Similar Topics

Jump to: