Results 1 to 10 of 13

Hybrid View

  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
    447
    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
    447
    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

 

 

Similar Threads

  1. Ultimate Seo Did't Rewrite manufacturer
    By jennydutch in forum General Questions
    Replies: 0
    Last Post: 13 Jul 2014, 01:29 AM
  2. v151 with ultimate seo Url,how to change the ez-page url ?
    By whywell in forum General Questions
    Replies: 1
    Last Post: 17 Jan 2013, 09:12 AM
  3. Is there a SEO/URL rewrite module with Cyrillic support?
    By vanessa85 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 20 Aug 2010, 02:05 PM
  4. Ceon URI Mapping (SEO) Config IIS6 rewrite
    By vgambrell in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 12 Feb 2010, 02:04 AM
  5. Ceon URI Mapping (SEO) Config IIS6 rewrite fails to display
    By vgambrell in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 20 May 2009, 03:31 PM

Posting Permissions

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