PDA

View Full Version : htaccess Look ok?



Emancipator
08-13-2004, 10:28 PM
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)


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

intelliot
08-14-2004, 12:51 AM
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.



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]

Emancipator
08-16-2004, 05:47 AM
thanks E i will give that a try.