"Turning a database inside out" = 404 errors

by adslgeek 2 replies
Hi there,

I have used a 404 redirect to a master page to help me generate what page to display based on the link:
Eg www.adslgeek.com/dslmodem/

Will then include the modem page based on what is after the dslmodem/ eg www.adslgeek.com/dslmodem/d-link to display all the D-link modems

BUT the only problem is when I put up a google sitemap, Google is detecting the 404 so erroring all the pages!

Does anyone have an idea to redirect all the URLs to the php script that builds the page based on what the URI is.

Hope this makes sense!
#main internet marketing discussion forum #404 #errors
Avatar of Unregistered
  • Profile picture of the author adslgeek
    In the end I answered my own question - the answer to this is mod rewrite for apache servers, and this translates the displayed URL into different terms to the PHP script.

    Rewrite engine - Wikipedia, the free encyclopedia
    mod_rewrite, a beginner's guide (with examples)

    It is doing my head in at the moment, but I will get it working soon.

    {{ DiscussionBoard.errors[46669].message }}
    • Profile picture of the author Dan Grossman
      Glad you found the right way to do this. You should be sending a 200 OK status code for those URLs assuming you have a page to serve on them. If someone gives you gibberish that you can't route to a real page, then send the 404, but you may have to do it manually through your script with header() now.
      Improvely: Built to track, test and optimize your marketing.

      {{ DiscussionBoard.errors[46760].message }}
Avatar of Unregistered

Trending Topics