Results 1 to 3 of 3

Thread: htaccess Look ok?

  1. #1
    Gimme Fries with that!
    Join Date
    Aug 2004
    Posts
    1,469

    htaccess Look ok?

    Just wanted to be sure this is a good htaccess mod rewrite method. It worked fine, rewrote my news items so now they are nice and short.

    Not going to be a spider problem?? Thanks guys.. i was just curious since i noticed that i got hit by google and it did not seem to spider my news pages(secondrewrite rule), but did spider my new movie pages (firstrewriterule)

    Code:
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule movie(.*)\.htm$ /category_details.php?category=$1
    rewriteRule movienews\_([0-9]{1,4})\.html$ /details_news.php?id=$1

  2. #2
    Registered intelliot's Avatar
    Join Date
    Jul 2004
    Posts
    309
    First, I think it may be case-sensitive. I noticed your second rule begins with rewriteRule rather than RewriteRule.

    Secondly, if you expect a URL to match just one of the rules you probably should add [L] to the end of each line.

    Code:
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule movie(.*)\.htm$ /category_details.php?category=$1 [L]
    RewriteRule movienews\_([0-9]{1,4})\.html$ /details_news.php?id=$1 [L]
    Elliot Lee
    Google Forums - Community for Google Fans!

  3. #3
    Gimme Fries with that!
    Join Date
    Aug 2004
    Posts
    1,469
    thanks E i will give that a try.

Similar Threads

  1. htaccess on non-Apache servers
    By mobilebadboy in forum Website Programming & Databases
    Replies: 2
    Last Post: 06-02-2004, 11:05 AM
  2. redirect with htaccess
    By albsure in forum Website Programming & Databases
    Replies: 6
    Last Post: 12-07-2003, 09:40 AM

Bookmarks

Posting Permissions

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