Results 1 to 3 of 3

Thread: 404 errors and deleting posts answer?

  1. #1
    Thread Starter
    globetrotter2011's Avatar
    Join Date
    Jan 2011
    Posts
    36
    Thanks
    3
    Thanked 0 Times in 0 Posts

    404 errors and deleting posts answer?

    Sorry to be banging on about this today, but it is at the top of my to do list!
    We are setting our users to authors which will not allow deleting of ads.

    I have just been reading an excellent book called wordpress 3 Site Blueprints. They cover CP in there and come up with some answers!!!!!

    The problem of deleting customers own ads seems to have been possibly addressed?
    As I see it if customers were allowed to delete their own ads, search engines would still have links to those pages and would return a 404, which would annoy the user. The idea in the book show a simple method of overcoming the 404 problem by directing any of the now dead links to the web sites home page.

    This was talked about in the book whilst discussing pruning ads, I assume that a facility enabling customers to delete their own ads would produce a similar effect leaving dead links on search engines until they updated their links.

    Would this not answer the concerns of displaying 404 errors after they delete one of their own ads?

    The code they suggest is

    <?php
    header("Status: 301 Moved Permanently");
    header("Location: http://example.com");
    ?>


    which should be put in the 404.php file

    I am not a programmer but can see what they are trying to do.
    Guess the better ideal would be to direct them to a page saying that the ad is no longer available with a link to the man site?

    comments?

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,700
    Thanks
    166
    Thanked 3,390 Times in 3,261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Thread Starter
    globetrotter2011's Avatar
    Join Date
    Jan 2011
    Posts
    36
    Thanks
    3
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Surely someone knows the answer to this.
    By englandrm in forum ClassiPress General Discussion
    Replies: 1
    Last Post: October 15th, 2010, 11:09 AM
  2. Deleting an Ad
    By smooth1 in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: July 31st, 2010, 10:02 PM
  3. Surely someone knows the answer to this
    By sarge in forum Help Using ClassiPress
    Replies: 2
    Last Post: April 25th, 2010, 04:30 PM