Changing the file extension of a sites pages.

  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Posts: 1417
  • Loc: 55° N, 3° W

Post 3+ Months Ago

I'm currently half-way through redesigning my own site. It's such a major redesign that every single page has to be done by hand. As well as a much-needed makeover I've also been making the site a lot easier for me to manage and update - no more manually adding a link across the menus of a 150 page section! As a consequence of this I've had to change the file extension on all the site's pages (currently around 3,500 of them and growing).

Now, my site isn't really all that busy - only about 80,000 page views a month.What I'm worried about is the flood of 404's that will be coming my way once I upload the new site (in a few months time).

Is there anything I can do, or should do, to ease this transition? Or should I just let users and bots figure out for themselves that all the pages they once visted or linked to, no longer exist?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

How about explaining some of the changes on the main page? That way the visitors won't get disgusted and leave. It won't do anything for the bots but at least the users won't be too confused.
  • jameson5555
  • Bronze Robot
  • Bronze Member
  • User avatar
  • Posts: 575
  • Loc: Phoenix, AZ

Post 3+ Months Ago

Just create a custom 404 page. If they try to pull up a page that doesn't exist anymore, make it look like the rest of the site with all the navigation intact so they can get where they want to go.
  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

I was going to say the same thing but I decided that it would be better to announce the changes on the main page and/or a redirect to the main page. A custom 404 can be there too.
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

Umm...
Code: [ Select ]
RewriteRule ^(.*)\.html$ $1.php
  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Posts: 1417
  • Loc: 55° N, 3° W

Post 3+ Months Ago

All good ideas and I'll probably utilise them all in one manner or another.

Neksus, can that rewrite stuff just go in an .htaccess file somewhere? Or would I need to put one in every directory? (I have zero access to anything above the root directory of my own site on a virtual server.)
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

You simply add it after RewriteEngine ON in your .htaccess.
That way if somebody calls any html file, it will simply replace it with .php.
Of course your needs may vary, but this is a start.

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 41 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.