Jump to content

clean URL but what if a file actually exists?


micah1701

Recommended Posts

I've used mod rewrite a few times in the past for sites to have nice pretty SEO URL's.

 

Here's my current situation though,

 

I want:

domain.com/news/2008/02/27/name

to really be:

domain.com/news/?year=2008&month=02&day=27&title=name

 

I think I know how to do that but here's my problem:

This dynamic url is actually replacing a legacy system which used actual HTML files in sub folders.

 

So while i want the mod rewrite to work for all new links created, I still need the site to be smart enough to check if a file actually exists at the URL and show that file instead of using the cute new link.

 

thoughts on how to handle this?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.