• 0

My News system


Question

Ok i made a news system

Mainly because i wanted to see if i could do it

Ignore the actual site layout it was just thrown together so i could work on it as if it was part of a site

Is there anything you would add?

Anything you would change?

anything you would remove?

http://www.haggistech.co.uk/news

Link to comment
https://www.neowin.net/forum/topic/1139934-my-news-system/
Share on other sites

Recommended Posts

  • 0


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

I guess that works or your purposes, since I like to grab URI segments to determine routes I tend to use this one:

[CODE]
RewriteEngine on
RewriteCond $1 !^(index\.php|imgs|css|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
[/CODE]

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

  • 0

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]
[/CODE]

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?

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.