vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - DC SEO vB URL Rewrite (https://vborg.vbsupport.ru/showthread.php?t=91324)

openmind 11-13-2005 01:11 PM

Great hack but I'm having a little trouble using it on Windows 2003 IIS6 and using the ISAP Rewrite dll (http://www.isapirewrite.com/)

Basicaly it does the same job as the Apache equivalent through a ini file in the web root.

This is my httpd.ini file:
PHP Code:

[ISAPI_Rewrite]

RewriteRule /forums/archive/([^/.?]+\.html) /forums/archive/index.php\?$[I,L]
RewriteRule /forums/(^f([0-9]+)-([A-Za-z0-9\-]+)\.html) /forums/forumdisplay.php?f=$[I,L]
RewriteRule /forums/(^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9\-]+)\.html) /forums/showthread.php?t=$1&page=$5&pp=10 

[I,L

The archive works perfectly but I'm getting 404's when I try to activate your plug in. I "think" its got something to do with the rule as I have had to add /forums/ to the condition as my config file is in the web root...

Can you help at all?

JTyson 11-13-2005 01:34 PM

If you post the htacces file for this hack at the isapirewrite forums they should be able to help you convert it to there syntax.

[high]* JTyson anxiously awaits an update on this hack :)[/high]

Zhen-Xjell 11-13-2005 01:42 PM

Quote:

Originally Posted by Dean C
After a quick browse around google and reading up, it seems as it's a work-in-progress and not yet fully implemented/supported in the development world?

http://www.w3.org/Addressing/

openmind 11-13-2005 02:05 PM

Quote:

Originally Posted by JTyson
If you post the htacces file for this hack at the isapirewrite forums they should be able to help you convert it to there syntax.

[high]* JTyson anxiously awaits an update on this hack :)[/high]

Sorted. The amended rules are below:
PHP Code:

RewriteRule /forums/f([0-9]+)-([A-Za-z0-9\-]+)\.html$ /forums/forumdisplay.php\?f=$[I,L]
RewriteRule /forums/t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9\-]+)\.html$ /forums/showthread.php\?t=$1&page=$5&pp=10 

[I,L

Clicks install :D

Just realised that \ is not showing up in the code block above so for example /forums/forumdisplay.php?f=$1 should be /forums/forumdisplay.php\?f=$1

TruthElixirX 11-13-2005 02:22 PM

I don't know if this has been mentioned but I am having a problem choosing styles in IE.

Whenever I try to change the style while viewing the thread I get the same style because the static URLs don't allow &styleid=# on the end.

I am very glad you are updating this! Thanks very much.

Dean C 11-13-2005 02:56 PM

Quote:

Originally Posted by openmind
Great hack but I'm having a little trouble using it on Windows 2003 IIS6 and using the ISAP Rewrite dll (http://www.isapirewrite.com/)

Basicaly it does the same job as the Apache equivalent through a ini file in the web root.

This is my httpd.ini file:
PHP Code:

[ISAPI_Rewrite]

RewriteRule /forums/archive/([^/.?]+\.html) /forums/archive/index.php\?$[I,L]
RewriteRule /forums/(^f([0-9]+)-([A-Za-z0-9\-]+)\.html) /forums/forumdisplay.php?f=$[I,L]
RewriteRule /forums/(^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9\-]+)\.html) /forums/showthread.php?t=$1&page=$5&pp=10 

[I,L

The archive works perfectly but I'm getting 404's when I try to activate your plug in. I "think" its got something to do with the rule as I have had to add /forums/ to the condition as my config file is in the web root...

Can you help at all?

I've never used an IIS module in my life, so I have no plans on supporting it. You're on your own I'm afraid :)

Dean C 11-13-2005 02:59 PM

Quote:

Originally Posted by TruthElixirX
I don't know if this has been mentioned but I am having a problem choosing styles in IE.

Whenever I try to change the style while viewing the thread I get the same style because the static URLs don't allow &styleid=# on the end.



I am very glad you are updating this! Thanks very much.

Yeah that's an unfortunate consequence I'm afraid :) Change it via your UserCP.

jayhawk785 11-13-2005 03:11 PM

Dean,

Does your latest version address URLs using "showthread.php?goto=newpost&t=2384" - or is that just not possible? I always use those to see new posts....

Dean C 11-13-2005 03:29 PM

Quote:

Originally Posted by jayhawk785
Dean,

Does your latest version address URLs using "showthread.php?goto=newpost&t=2384" - or is that just not possible? I always use those to see new posts....

There is no issue here. That URL serves a function. It redirects to a page with an anchor on with the most recent post. There is no reason whatsoever to rewrite this URL.

mcleodc 11-13-2005 06:30 PM

posted in error sorry


All times are GMT. The time now is 03:10 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02753 seconds
  • Memory Usage 1,770KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete