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

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

    Quote Originally Posted by glitchbit View Post
    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
    Hi Glitch,

    I'll try squeeze this into my schedule this week. It seems there are some advanced features (from my initial overview IE logging) and the rewrite scripts looks much easier to manage!

    I have noticed a bug with the Isapi_ReWrite module from Helitech in that it will not let the web server display .html extension files (This is a ReWrite .httpd file command issue, I'm working with Alex and Helicon to fix this).

    I'll let you know what I can produce end of week. Cheers,

    Bjorn

  2. #12
    Join Date
    Jul 2008
    Posts
    1
    Plugin Contributions
    0

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

    Hey bjorn I made a different approach to this issue and made a custom 404 handler to make this work.
    Code:
    <?php
    	$url="";
    	$server_location = $_SERVER["REQUEST_URI"];
    	$lval = split("/", $server_location);
    	$lval = $lval[count($lval)-1];
    	$sval = split("\?", $lval);
    	$querystring = $sval[1];
    	$origurl = $sval[0];
    	
    	
    	function left($str, $length) {
    		return substr($str, 0, $length);
    	} 
    
    	function right($str, $length) {
    		return substr($str, -$length);
    	}
    	
    	function instr($mainstr, $searchstr) {
    		if (strpos($mainstr, $searchstr) === false) { return false; } else { return true; }
    	}
    	
    	function getID($type) {
    		global $origurl;
    		$id = substr($origurl, strpos($origurl, $type)+strlen($type), strpos($origurl, ".")-strpos($origurl, $type)-strlen($type)); /*fancy string work*/
    		return $id;
    	}
    	
    	
    	function getURL() {
    		global $origurl, $url;
    		if (instr($origurl, "-c-")) {
    				$id = getID("-c-");
    				$url="index.php?cPath=$id&$querystring";
    		}
    		if (instr($origurl, "-p-")) {
    				$id = getID("-p-");
    				$url="product_info.php?products_id=$id&$querystring";
    		}         
    		if (instr($origurl, "-m-")) {
    				$id = getID("-m-");
    				$url="index.php?manufacturers_id=$id&$querystring";
    		}       
    		if (instr($origurl, "-pi-")) {
    				$id = getID("-pi-");
    				$url="popup_image.php?pID=$id&$querystring";
    		}
    		if (instr($origurl, "-pri-")) {
    				$id = getID("-pri-");
    				$url="product_reviews_info.php?products_id=$id&$querystring";
    		}     
    		if (instr($origurl, "-t-")) {
    				$id = getID("-t-");
    				$url="articles.php?tPath=$id&$querystring";
    		}
    		if (instr($origurl, "-a-")) {
    				$id = getID("-a-");
    				$url="article_info.php?articles_id=$id&$querystring";
    		}   
    		if (instr($origurl, "-pr-")) {
    				$id = getID("-pr-");
    				$url="product_reviews.php?products_id=$id&$querystring";
    		}    
    		if (instr($origurl, "-i-")) {
    				$id = getID("-i-");
    				$url="information.php?info_id=$id&$querystring";
    		}
    		if (instr($origurl, "-links-")) {
    				$id = getID("-links-");
    				$url="links.php?lPath=$id&$querystring";
    		}
    		                   
    	}
    	
    	getURL();
    		
    	if ($url!="") {
    		$data = file_get_contents("yoursitehere.com/$url&skip_check=true");
    		echo $data;
    	} else {
    		echo "<center>Page cannot be found, if you feel you have gotten to this page by error please contact an admin [email protected]</center>";		
    	}
    ?>

    Modification in the seo code so you can skip the friendly redirect back to the 404 page.
    Code:
    // Ultimate SEO URLs v2.1
      if ((!defined(SEO_ENABLED)) || (SEO_ENABLED == 'true')) {
      	if ($_GET['skip_check']!=true) { 
    	    include_once(DIR_WS_CLASSES . 'seo.class.php');
    	    if ( !is_object($seo_urls) ){
    	      $seo_urls = new SEO_URL($languages_id);
    	    }
        }
      }
    hope this helps some of you on IIS out.
    Last edited by iam_clint; 28 Jul 2008 at 08:27 PM.

  3. #13
    Join Date
    Oct 2008
    Posts
    19
    Plugin Contributions
    0

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

    i'm very confused....

    I've installed isapi rewrite 3 on my server (IIS6), and i used httpd.ini (uploaded in the root) like Bjorn said but nothing seems work.

    I can't set server myself because it's in housing in a farm, but they say that all settings are ok.

    They say that errors occour like these:

    Unknown expression on line #1: [ISAPI_Rewrite]
    Unknown expression on line #3: UriMatchPrefix /backstagericcione.it
    Unknown expression on line #4: UriFormatPrefix /backstagericcione.it
    Unknown expression on line #39: UriMatchPrefix
    Unknown expression on line #40: UriFormatPrefix


    I'm really getting crazy... please... can anybody hel me?

    Thanks (and sorry about my english.... )

 

 
Page 2 of 2 FirstFirst 12

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