Jump to content



Photo

My News system


  • Please log in to reply
31 replies to this topic

#31 Kami-

Kami-

    ♫ d(-_-)b ♫

  • Tech Issues Solved: 2
  • Joined: 28-July 08
  • Location: SandBox

Posted 12 March 2013 - 07:55

#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

Haggis

    Neowinian Senior

  • Tech Issues Solved: 8
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted 12 March 2013 - 08:06

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?



Click here to login or here to register to remove this ad, it's free!