Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Switching to a dynamic site

learned a lot at pubcon... about to implement major changes

         

travelin cat

4:52 pm on Nov 22, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



We had our site reviewed at Pubcon in Vegas and realized what our problems are....

We are now re-working the site and have decided to go with css generated by php so that we can keep the content new and plentiful.

My question is this: we have about 250 existing static html pages that will no longer be used, should we just remove the html pages from the server and then use 301 redirects?

Should we be redirecting to the new pages (ie france.html becomes france.php) or to the index page?

Finally, does anyone feel that moving to this type of system (css via php) is a bad idea?

thanks in advance.

jamie

5:30 pm on Nov 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



travelin cat,

using mod_rewrite and setting your server to parse html pages as php, you can keep your existing page names but still have all the benefits of dynamic content. that way you won't take any sort of hit in the search engines, because you won't have to wait until any renamed pages are indexed!

search for 'search engine friendly urls' and 'parse html as php' - with a bit of trickery, you never need change your page names again, regardless of the behind-the-scenes trickery you use.

must read [w3.org...] - "cool uris don't change"

good luck!

Patrick Taylor

6:22 pm on Nov 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



W3C: File name extension. This is a very common one. "cgi", even ".html" is something which will change. You may not be using HTML for that page in 20 years time, but you might want today's links to it to still be valid.

In the long term an URL such as domain.com/france is the way to go, with no file extension. Whether they are static pages or dynamically generated, mod_rewrite will allow the same URL to last indefinitely.

I would imagine a 301 redirect from domain.com/france.html to domain.com/france would be safe enough.