Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    May 2005
    Posts
    25
    Plugin Contributions
    0

    Have a Drink Ultimate SEO URL's with Isapi ReWrite for IIS6

    If you manage your own server this setup is for you. On a shared hosting account, you will need to contact your provider for the setup of the Isapi_ReWrite filter.

    How do we do it?

    1. Visit www.isapirewrite.com and buy the filter. (You can try it free for 30 days)
    2. Install the Isapi filter. Follow instructions to a T. Correct permissions must be set for IIS_WPG group otherwise you will see errors. See install documentation.
    3. Setup the httpd.ini file. We do not use htaccess files, instead we will use httpd.ini files which contain the ReWrite rules. The httpd.ini file must be created in the ROOT of your site.
    4. Insert ReWrite rules. The converted rules are as follows: (insert into the http.ini file)

    Code:
    # From Ultimate SEO URLs
    RewriteRule .*-p-(.*)\.html(?:\?(.*))? index.php\?main_page=product_info&products_id=$1?2&$2: [I,L]
    RewriteRule .*-c-(.*)\.html(?:\?(.*))? index.php\?main_page=index&cPath=$1?2&$2: [I,L]
    RewriteRule .*-m-([0-9]+)\.html(?:\?(.*))? index.php\?main_page=index&manufacturers_id=$1?2&$2: [I,L]
    RewriteRule .*-pi-([0-9]+)\.html(?:\?(.*))? index.php\?main_page=popup_image&pID=$1?2&$2: [I,L]
    RewriteRule .*-pr-([0-9]+)\.html(?:\?(.*))? index.php\?main_page=product_reviews&products_id=$1?2&$2: [I,L]
    RewriteRule .*-pri-([0-9]+)\.html(?:\?(.*))? index.php\?main_page=product_reviews_info&products_id=$1?2&$2: [I,L]
    
    # For Open Operations Info Manager
    RewriteRule .*-i-([0-9]+)\.html(?:\?(.*))? index.php\?main_page=info_manager&pages_id=$1?2&$2: [I,L]
    
    # For dreamscape's News & Articles Manager
    RewriteRule news/?(?:\?(.*))? index.php\?main_page=news?1&$1: [I,L]
    RewriteRule news/rss\.xml(?:\?(.*))? index.php\?main_page=news_rss?1&$1: [I,L]
    RewriteRule news/archive/?(?:\?(.*))? index.php\?main_page=news_archive?1&$1: [I,L]
    RewriteRule news/([0-9]{4})-([0-9]{2})-([0-9]{2})\.html(?:\?(.*))? index.php\?main_page=news&date=$1-$2-$3?4&$4: [I,L]
    RewriteRule news/archive/([0-9]{4})-([0-9]{2})\.html(?:\?(.*))? index.php\?main_page=news_archive&date=$1-$2?3&$3: [I,L]
    RewriteRule news/.*-a-([0-9]+)-comments\.html(?:\?(.*))? /index.php?main_page=news_comments&article_id=$1?2&$2: [I,L]
    RewriteRule news/.*-a-([0-9]+)\.html(?:\?(.*))? index.php\?main_page=news_article&article_id=$1?2&$2: [I,L]
    
    # All other pages
    # Don't rewrite real files or directories
    
    # There is no way to convert these conditions in the current ISAPI_Rewrite version:
    
    # RewriteCond %{REQUEST_FILENAME} !-f [NC]
    # RewriteCond %{REQUEST_FILENAME} !-d
    # RewriteRule ^(.*).html /index.php?main_page=$1&%{QUERY_STRING} [L]
    
    
    # Only rule could be converted to:
    RewriteRule (.*)\.html(?:\?(.*))? index.php\?main_page=$1?2&$2: [I,L]
    
    UriMatchPrefix
    UriFormatPrefix
    5. Install the Ultimate SEO Module, enable and you should be set.

    If you have problems, DOUBLE CHECK THE INSTALLATION DOCUMENTATION. If you do not set the proper permission on the required directories you will encounter problems with the filter.

    There was an attached note from the creators of the Isapi_ReWrite filter for IIS that were rules that could not be converted to the isapi filter format. No issues as of yet.

    A big thanks to Blindside who pointed out the Isapi_ReWrite filter for IIS. That spawned the process of working on finding a SEO URL option for IIS users.

    Thank you to the chinese ZenCart community who started the original thread on converting the code to Isapi format.

    Link 1: Here
    Link 2: Here

    And lastly, I want to thank Lexey of Helicon Tech who provided the latest rule conversion from the Mod_ReWrite to Isapi_ReWrite. Without his prompt response in rewriting the ruleset we would still be fumbling around for a solution.

    See his reponse to my initial question on the Helicon Tech forums here

    I hope this provides you with as much excitement as it has me! A solution at last! Cheers,

    Bjorn

  2. #2
    Join Date
    Jul 2006
    Location
    Johannesburg
    Posts
    431
    Plugin Contributions
    1

    Default Re: Ultimate SEO URL's with Isapi ReWrite for IIS6

    Bjorn,

    Man, you are a star!!

    I have spent hours to try and get this working in IIS.

    Thanks, Thanks and Thanks again.

  3. #3
    Join Date
    Jul 2006
    Location
    Johannesburg
    Posts
    431
    Plugin Contributions
    1

    Default Re: Ultimate SEO URL's with Isapi ReWrite for IIS6

    Hi,

    I changed the httpd.ini as per your post, activated the re-write and received the following errors:

    Line 51: Unrecognized string: UriMatchPrefix
    Line 52: Unrecognized string: UriFormatPrefix

    Could you PM me your copy of the httpd.ini file (or post as reply to this) so I can compare.

  4. #4
    Join Date
    May 2005
    Posts
    25
    Plugin Contributions
    0

    Default Re: Ultimate SEO URL's with Isapi ReWrite for IIS6

    Quote Originally Posted by Louis View Post
    Hi,

    I changed the httpd.ini as per your post, activated the re-write and received the following errors:

    Line 51: Unrecognized string: UriMatchPrefix
    Line 52: Unrecognized string: UriFormatPrefix

    Could you PM me your copy of the httpd.ini file (or post as reply to this) so I can compare.
    Hi Louis,

    From the look of the error, the Isapi_ReWrite filter is not configured properly. The UriMatchPrefix and UriFormatPrefix is the replacement code for the ReWriteBase rule for Apache that enables you to specify the relative path of the shop.

    Are you using the latest copy of the Isapi_ReWrite filter?

    Here is my httpd.ini file:

    Code:
    [ISAPI_Rewrite]
    
    UriMatchPrefix /demo/
    UriFormatPrefix /demo/
    
    # From Ultimate SEO URLs
    RewriteRule .*-p-(.*)\.html(?:\?(.*))? index.php\?main_page=product_info&products_id=$1?2&$2: [I,L]
    RewriteRule .*-c-(.*)\.html(?:\?(.*))? index.php\?main_page=index&cPath=$1?2&$2: [I,L]
    RewriteRule .*-m-([0-9]+)\.html(?:\?(.*))? index.php\?main_page=index&manufacturers_id=$1?2&$2: [I,L]
    RewriteRule .*-pi-([0-9]+)\.html(?:\?(.*))? index.php\?main_page=popup_image&pID=$1?2&$2: [I,L]
    RewriteRule .*-pr-([0-9]+)\.html(?:\?(.*))? index.php\?main_page=product_reviews&products_id=$1?2&$2: [I,L]
    RewriteRule .*-pri-([0-9]+)\.html(?:\?(.*))? index.php\?main_page=product_reviews_info&products_id=$1?2&$2: [I,L]
    
    # For Open Operations Info Manager
    RewriteRule .*-i-([0-9]+)\.html(?:\?(.*))? index.php\?main_page=info_manager&pages_id=$1?2&$2: [I,L]
    
    # For dreamscape's News & Articles Manager
    RewriteRule news/?(?:\?(.*))? index.php\?main_page=news?1&$1: [I,L]
    RewriteRule news/rss\.xml(?:\?(.*))? index.php\?main_page=news_rss?1&$1: [I,L]
    RewriteRule news/archive/?(?:\?(.*))? index.php\?main_page=news_archive?1&$1: [I,L]
    RewriteRule news/([0-9]{4})-([0-9]{2})-([0-9]{2})\.html(?:\?(.*))? index.php\?main_page=news&date=$1-$2-$3?4&$4: [I,L]
    RewriteRule news/archive/([0-9]{4})-([0-9]{2})\.html(?:\?(.*))? index.php\?main_page=news_archive&date=$1-$2?3&$3: [I,L]
    RewriteRule news/.*-a-([0-9]+)-comments\.html(?:\?(.*))? /index.php?main_page=news_comments&article_id=$1?2&$2: [I,L]
    RewriteRule news/.*-a-([0-9]+)\.html(?:\?(.*))? index.php\?main_page=news_article&article_id=$1?2&$2: [I,L]
    
    # All other pages
    # Don't rewrite real files or directories
    
    #There is no way to convert these conditions in the current ISAPI_Rewrite version:
    
    #RewriteCond %{REQUEST_FILENAME} !-f [NC]
    #RewriteCond %{REQUEST_FILENAME} !-d
    #RewriteRule ^(.*).html /index.php?main_page=$1&%{QUERY_STRING} [L]
    
    
    #Only rule could be converted to:
    RewriteRule (.*)\.html(?:\?(.*))? index.php\?main_page=$1?2&$2: [I,L]
    
    UriMatchPrefix
    UriFormatPrefix
    Cheers,

    Bjorn

  5. #5
    Join Date
    May 2005
    Posts
    25
    Plugin Contributions
    0

    Default Re: Ultimate SEO URL's with Isapi ReWrite for IIS6

    My apologies, I noticed in the first post that the opening UriMatchPrefix / and UriFormatPrefix / were ommited. See post 4 for the correct httpd.ini rules,

    Bjorn

  6. #6
    Join Date
    Jun 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Ultimate SEO URL's with Isapi ReWrite for IIS6

    How about this free Isapi Rewrite for IIS6?

    http://cheeso.members.winisp.net/IIRF.aspx

    This site has an example of reworking the url rewrite rules for IIRF. If anyone could help rework what Bjorn posted, I'd appreciate it very much.

    http://www.codinghorror.com/blog/archives/000797.html

    it also has logging capabilities that should help diagnose when something does go as expected.

    Thanks

  7. #7
    Join Date
    Jun 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Ultimate SEO URL's with Isapi ReWrite for IIS6

    After going over Ionics ISAPI readme file it seems that it already supports everything in that file of yours except.

    UriMatchPrefix
    UriFormatPrefix

    So there is no changing the entire base url, and the solution the joomla people gave was rewritecondition's and rewriterule's much like the ones you already created.

    So are these two

    UriMatchPrefix
    UriFormatPrefix

    just there incase you forgot something or what?

    Thanks

  8. #8
    Join Date
    Mar 2006
    Posts
    921
    Plugin Contributions
    2

    Default Re: Ultimate SEO URL's with Isapi ReWrite for IIS6

    Good job with this Bjorn!

    I've followed your instructions (also read your post over at Helicon Tech's forum), but cannot get the Ultimate SEO URLs contribution to work with this!

    So far I've installed ISAPI_Rewrite and that works fine. I know it works becuase my website contains various hardcoded links such as '/specials.html' and they all point to the relevant pages (in this case '/index.php?main_page=specials').

    The problem I have is that when I turn on Ultimate SEO URLs (from my Zen Cart admin) none of my product links work! The links are generated correctly (so Ultimate SEO URLs is working correctly), but when I click on them the next page appears doesn't load!

    The status bar of my browser tells me that it's trying to load the next page an the little status bar progresses, but this process simply repeats... over and over again.

    Did you experience a problem like this?

  9. #9
    Join Date
    May 2005
    Posts
    25
    Plugin Contributions
    0

    Default Re: Ultimate SEO URL's with Isapi ReWrite for IIS6

    Hi Alex,

    What version of ZC and the SEO contrib are you using? Can you provide a link to your cart?

    Cheers,

    Bjorn

  10. #10
    Join Date
    Mar 2006
    Posts
    921
    Plugin Contributions
    2

    Default Re: Ultimate SEO URL's with Isapi ReWrite for IIS6

    Hi Bjorn,

    Please find all of the relevant information below.

    Zen Cart Version: 1.3.7.1 (Database Version 1.3.7)
    Ultimate SEO URLs v2.103

    Server is running Windows Server 2003 x64 Standard Edition with IIS 6.0 and ISAPI_Rewrite Lite 2.11.0068.

    My httpd.ini file was identical to the one you posted. As previously mentioned, my hardcoded links (for example, '/specials.html', '/contact_us.html', etc...) worked fine. So, ISAPI_Rewrite was working.

    Now, I have two problems.

    1 - ISAPI_Rewrite seems to block direct access to certain files. For example, my html authentication files (at the root of my site) used by Yahoo and Google.

    2 - When I have Ultimate SEO URLs turned on everything seems to be working correctly. Until you click on a link. When clicking on any link the website just attempts to loads the page... over and over again, but makes no progress.

    You can access my website by clicking on the link in my signature. At present I've disabled ISAPI_Rewrite and Ultimate SEO URLs.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. SEO Ultimate URLs Question
    By ryangsoton in forum All Other Contributions/Addons
    Replies: 21
    Last Post: 3 Oct 2008, 06:07 AM
  2. Help with Dreamscape/DrByte Ultimate SEO URLs
    By offnetrob in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 11 Aug 2006, 05:58 PM
  3. How can i use the Ultimate SEO URLs for IIS?
    By yeemn in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 24 May 2006, 12:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •