1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

make wordpress posts/pages display with .php suffix (wordpress)

Discussion in 'Black Hat SEO' started by xplosiv, Jul 12, 2016.

  1. xplosiv

    xplosiv Power Member

    Joined:
    Oct 18, 2014
    Messages:
    523
    Likes Received:
    119
    Basically I'm trying to rebuild a website from archive, except some of the pages and posts are showing on some dates of the website and some are unavailable except on different dates. I was going to use an archive rebuilder service but it failed to recreate the site effectively, plus it has a bunch of ads and I know fuck all about coding lmao.

    Anyway, that's why I'm asking about this - the website appears to be a wordpress built site, as it has categories and a comments function. But so far, I can't figure out how to make posts and pages end with .php to recreate the pages as it was originally.

    Ive looked on Youtube but the videos are fairly old so I'm not sure it will all work now. If there's an easy to do this I'd appreciate it.

    Cheers dudes
     
  2. merieke

    merieke Registered Member

    Joined:
    Jun 20, 2011
    Messages:
    52
    Likes Received:
    21
    Are you saying that you are trying to use a web archive, like waybackmachine, to retrieve the various pages of a website over time and recreate the pages? But not only do you want just the content of the page itself you want the original .php code that generated the page?

    If that is your question then I'm sorry to say that it's not possible. PHP is server side code and you can't get that from anywhere except the original server itself. Archive websites only store some of the content that existed on the page and not any of the code that powered it.
     
  3. xplosiv

    xplosiv Power Member

    Joined:
    Oct 18, 2014
    Messages:
    523
    Likes Received:
    119
    I dont know where you pulled all that from, I am just trying to recreate the file path of the original site as it is in the archive. As I said it looks like it was a wordpress site, but I dont know why some of the pages end .php, because there is just regular content on them.
     
  4. merieke

    merieke Registered Member

    Joined:
    Jun 20, 2011
    Messages:
    52
    Likes Received:
    21
    A browser can load/render page with a .php extension just like a.html. All php code will be decoded server side before you see it though leaving you with just the HTML markup.

    Back in the day, before various CMS platforms became popular, you would actually see .html, .asp, .php in the URL itself. When you visit a wordpress site today you are actually being served http://thewebsite.com/index.php but index.php calls other php files and creates a content page and returns the Wordpress permalink structure in your browser bar.

    I'm sorry if I'm not understanding/answering your question but I think for the sake of what you're doing you would just consider anything with a .php extension as no different than .html since that's essentially all you're going to get.
     
    • Thanks Thanks x 1
  5. Dakarois

    Dakarois Regular Member

    Joined:
    Jun 3, 2013
    Messages:
    224
    Likes Received:
    122
    Location:
    Une poutine avec ├ža
    Try this plugin it might work for what you trying to accomplish
     
  6. xplosiv

    xplosiv Power Member

    Joined:
    Oct 18, 2014
    Messages:
    523
    Likes Received:
    119
    Thanks mate, that might have got part of the job done. Fortunately though all the backlinks to this domain are either at the homepage or categories so I can recreate all the links without even having to use a redirection. Good to know for future domains though.