Results 1 to 7 of 7

Thread: Search Engine Friendly Url

  1. #1
    pteerapr is offline Registered User
    Join Date
    Mar 2006
    Posts
    3

    Default Search Engine Friendly Url

    Hello,
    Indexu is a good script. It will be perfect if you the developer teach us how to use dash in the url instead of underscore. Do a search for dash versus underscore seo in google and you will see that google favor dash more than underscore. Could you please tell us where to go to make change in the template. Make all underscore convert dash.

    for example
    (This is in the detail page.)
    [http://www.domain.com/florida-lawyer...love__pa.html]
    change to
    [http://www.domain.com/florida-lawyer...-love-pa.html]

    Thank you,
    Pete
    Last edited by pteerapr; 03-14-2006 at 06:57 PM.

  2. #2
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default

    It's SEOReplace function in /lib/misc.lib.php
    You need to edit the str_replace at the buttom to be dash -

    thanks for you suggession.

    PHP Code:
      // ----- SEOReplace -----

      
    function SEOReplace($string) {
        
    $seo_replacement_str_arr = array (
          
    ' ',
          
    '-',
          
    '/',
          
    '\\',
          
    ',',
          
    '#',
          
    ':',
          
    ';',
          
    '\'',
          
    '"',
          
    '[',
          
    ']',
          
    '{',
          
    '}',
          
    '|',
          
    '`',
          
    '~',
          
    '!',
          
    '@',
          
    '%',
          
    '$',
          
    '^',
          
    '&',
          
    '*',
          
    '=',
          
    '+'
        
    );
        return 
    str_replace($seo_replacement_str_arr'_'$string);
      } 
    www.nicecoder.com
    www.dodyrw.com

  3. #3
    pteerapr is offline Registered User
    Join Date
    Mar 2006
    Posts
    3

    Default

    I got it. Awesome. I am soon to dominate my niche with unlimited license. 499 is nothing compare to how cool this script is.
    Last edited by pteerapr; 03-14-2006 at 08:16 PM.

  4. #4
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default

    thanks!
    www.nicecoder.com
    www.dodyrw.com

  5. #5
    pteerapr is offline Registered User
    Join Date
    Mar 2006
    Posts
    3

    Default New Modrewrite Problem

    Hello Dody,

    I use 5.0.1 right now because there is a lot of customized code that I have in there that is why I have not upgraded. My problem is

    This is the url that my mod rewrite change for detail.php.

    http://www.lawyersomething.com/lawye...---wallsh.html

    It is perfect and very search engine friendly. It show up on browse.php as a link to detail about different lawyer.

    However, in hot.php and top_rated.php
    it shows the link like this.
    http://www.lawyersomething.com/detai...---wallsh.html

    detail/{$link_id} is the default mod rewrite of indexu.
    The link then become broken. I need them to show up consistently like in browse.php. The mod rewrite code that I customize

    Please help. It is almost perfect now.

    lawyersomething.com does not exist. It is just fictitous name. I am on my way to dominating lawyer related website with your script. Eventually will have all kind of lawyer in every state one domain per state.
    Last edited by pteerapr; 04-01-2006 at 02:28 AM.

  6. #6
    Frank71 is offline Active Member
    Join Date
    Aug 2002
    Location
    Germany
    Posts
    1,180

    Default mod rewrite without end

    DODY ?
    Please can you explain also how to rewrite special letter sin non english languages, by sample ÄÖÜßäöü to ae oe ue ss ????
    This is still not possible...!

    About the questions:
    PHP Code:
    <td valign="top"><b><a href="detail/<%$link_id%>/<%$title_mod%>.html" target="_parent"><%$title%></b></a></td
    Shouldn't this solve the problem in hot_links_row.html ?

    Regards
    Frank

  7. #7
    dody is offline Administrator
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,731

    Default

    Frank, this is a big problem. The non english characters should be urlencoded to work. Unless you could help me with a list of replacement characters.

    Like this:
    &#196;&#228; = a
    &#246; = o
    &#252; = u
    www.nicecoder.com
    www.dodyrw.com

Similar Threads

  1. Replies: 1
    Last Post: 08-01-2005, 07:47 PM
  2. Please make my directory search engine friendly!
    By seomontreal in forum Help Wanted/Job Request
    Replies: 0
    Last Post: 07-07-2005, 10:40 AM
  3. Replies: 31
    Last Post: 06-23-2005, 01:26 PM
  4. Search engine friendly URL
    By aladdin in forum v3.2
    Replies: 2
    Last Post: 01-12-2005, 05:27 PM
  5. Search engine on other sites?
    By vertygo in forum v5.x
    Replies: 2
    Last Post: 04-03-2002, 08:23 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
  •