Mod Rewrite Issues

Discussion in 'Apache' started by Swordfish, Mar 16, 2006.

  1. #1
    I have been using mod rewrite now for some time and have adding many pages to my site, however none of them are getting indexed.

    I think it is because of a possible error in my .htaccess

    Options +FollowSymlinks -Indexes
    RewriteEngine On
    RewriteRule ^(conventional-reels|combos|lights|rod-holders|casting-reels|gps|chartplotters|vhf-radio|trolling-motors|hooks|cast-nets|line-and-leader|electric-reels|lures|rods|terminal-tackle|tools|spinning-reels|storage|rods|fishfinders|accessories|fly-reels|sunglasses|watches|binoculars|kites|downriggers|radar|fighting-belts|gaffs|harpoons)/$ /fishing-tackle.php?cid=$1 [nc,L]
    RewriteRule ^(conventional-reels|combos|lights|rod-holders|casting-reels|gps|chartplotters|vhf-radio|trolling-motors|hooks|cast-nets|line-and-leader|electric-reels|lures|rods|terminal-tackle|tools|spinning-reels|storage|rods|fishfinders|accessories|fly-reels|sunglasses|watches|binoculars|kites|downriggers|radar|fighting-belts|gaffs|harpoons)/(.*)\.html$ /fishing-tackle.php?cid=$1&pid=$2 [nc,L]
    RewriteRule ^(.*)\-boats\/(.*)\.html$ /boats.php?mlink=$1&plink=$2 [nc,L]
    RewriteRule ^(.*)\-boats\/$ /boats.php?mlink=$1 [nc,L]
    RewriteRule ^(.*)\-NGK\-Spark\-Plugs\-details\-([0-9]+)\.html$ /ngk-spark-plugs.php?pid=$1&plugid=$2 [nc]
    RewriteRule ^(.*)\-NGK\-Spark\-Plugs\-list\.html$ /ngk-spark-plugs.php?lid=$1 [nc]
    RewriteRule ^(.*)\-NGK\-Spark\-Plugs\.html$ /ngk-spark-plugs.php?cid=$1 [nc]
    RewriteRule ^(.*)\.html$ /sitemap.php?aid=$1 [nc]
    RewriteRule ^rss\-(.*)\.php$ /rss.php?cat=$1 [nc]
    Code (markup):

    Can you see any possibiliites as to why the pages aren't being found by G.
     
    Swordfish, Mar 16, 2006 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    If you can view the URLs, the search engines should be able to. Change [nc] to [L].

    What's the sites PR, and domain?

    Change

    Options +FollowSymlinks -Indexes

    to

    Options +Indexes
    Options +FollowSymlinks

    Though I don't thing -Indexes would keep Gogle away.
     
    Nintendo, Mar 18, 2006 IP