Welcome Guest! To access all forums & features, please register an account or sign-in. → Why register?



My News system


31 replies to this topic - - - - -

#31 Kami-

    ♫ d(-_-)b ♫

  • 3,624 posts
  • Joined: 28-July 08
  • Location: SandBox

Posted 12 March 2013 - 07:55

View PostHaggis, on 11 March 2013 - 20:41, said:

#begin
RewriteEngine on
RewriteRule (.*)/(.*)/ index.php?page=$1&title=$2

I guess that works or your purposes, since I like to grab URI segments to determine routes I tend to use this one:
RewriteEngine on
RewriteCond $1 !^(index\.php|imgs|css|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

It all depends on how you want to use what comes out the other end. :)


#32 OP Haggis

    Resident Elite

  • 1,339 posts
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted 12 March 2013 - 08:06

View PostKami-, on 12 March 2013 - 07:55, said:

I guess that works or your purposes, since I like to grab URI segments to determine routes I tend to use this one:
RewriteEngine on
RewriteCond $1 !^(index\.php|imgs|css|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

It all depends on how you want to use what comes out the other end. :)


so is that doing if imgs,css,robots is in the url it ignores it?