search engine friendly url masking?

Discussion in 'Search Engine Optimization' started by mahmood, Apr 6, 2006.

  1. #1
    I hear that some search engines have problems with dynamic and long urls and also hear that url masking can over come this problem.

    How can I create a search engine friendly url masking? I have seen some directories do something like this:
    instead of
    www.myDomain.com/index.php?name=computer&type=ibm
    PHP:
    they put:
    www.myDomain.com/computer/ibm
    PHP:
    How do they do that?
     
    mahmood, Apr 6, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Its fairly easy to do and uses mod rewrite. The Apache forum is where you should start.
     
    mad4, Apr 6, 2006 IP
  3. mahmood

    mahmood Guest

    Messages:
    1,228
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the tip. seems exactly what I need.
     
    mahmood, Apr 6, 2006 IP
  4. websiteideas

    websiteideas Well-Known Member

    Messages:
    1,406
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    130
    #4
    You put some code like this in a .htaccess file:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*)-(.*)\.htm$ /index.php?name=$1&type=$2
     
    websiteideas, Apr 6, 2006 IP