reserved words for mod rewrite?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
Skittlewidth
Forum Contributor
Posts: 389
Joined: Wed Nov 06, 2002 9:18 am
Location: Kent, UK

reserved words for mod rewrite?

Post by Skittlewidth »

Code: Select all

RewriteRule ^news$ news.php [L] 
RewriteRule ^developments$ developments.php [L]
I'm writing a very basic htaccess file along the lines of the above, so that we can publish urls as http://www.blah.com/blah instead of http://www.blah.com/blah.php .
They aren't all like that, some pages resolve to "page.php?id=2" but those two just need to resolve to the word plus .php

The "developments" rule works fine. But the "news" rule does not. If I change it to "newso" then it does, so it must be a specific problem with the word "news". Is it a reserved word? Or is there something about the letter combination that mod rewrite is interpreting in a different way??

Made several attempts to escape it but so far no joy. All the files are in the same directory.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

try taking the [L] off
User avatar
Skittlewidth
Forum Contributor
Posts: 389
Joined: Wed Nov 06, 2002 9:18 am
Location: Kent, UK

Post by Skittlewidth »

nope, that didn't work. I wonder if its just specific to my current server environment and whether it would work on the live server. I'm not sure I can check that until next week though.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Yeah, didnt think that would solve it, worth a try.

There are no reserved words as far as i know, and if there was, i doubt news would be one of them. Strange how it works with "newso" but not "news"
User avatar
Skittlewidth
Forum Contributor
Posts: 389
Joined: Wed Nov 06, 2002 9:18 am
Location: Kent, UK

Post by Skittlewidth »

Looks like it works fine on one of the live servers. I'd better take a look at my apache set up later!
Post Reply