Jump to content
Sign in to follow this  
anvilmediainc

Custom 404 Page or Redirect [Platform Pro]

Recommended Posts

anvilmediainc

After reading and posting in a few threads asking about customizing 404 error pages, I decided to start my own because I'm stuck. First, please don't refer me to this thread: http://www.pagelines.com/forum/topic.php?id=1647 because it's not helpful for people using Platform Pro. Since PP's noposts 404 page isn't easily editable by people shaky in PHP, I figured it would be easier to just redirect 404 errors to a page that I created in WP. I have the redirection plugin set up, but I couldn't figure out how to use it to redirect 404 error pages. I also tried adding code 3 different ways to my .htaccess file: ErrorDocument 404 /page ErrorDocument 404 /page.php ErrorDocument 404 http://www.anvilmediainc.com/page Does anybody know how to redirect 404 error pages, or will the 404 template be easier to edit in upcoming versions of PP?

Share this post


Link to post
Share on other sites
cmunns

The next phase of development is definitely going to be making the custom template stuff much much easier. But although you might not know php I can certainly help customize that other file if you let me know what you are trying to do. Forgive me if you've done this

Share this post


Link to post
Share on other sites
anvilmediainc

At this point even just having our HTML sitemap below the search box would be fine. I tried doing this, but couldn't get it quite right. I'm using a plugin to generate the sitemap that uses shortcode like this: `[html-sitemap exclude=353,1078,1064,1048,1046,1043,1040,1038,1036,1851? sort_column=menu_order]` But putting that into the noposts page prints it out just like that, it doesn't actually print the sitemap (as seen here: http://www.anvilmediainc.com/anvil-media-sitemap) My next step was to just paste in the HTML from that sitemap page, but it didn't retail the styling for some reason, so all the bullets were aligned left without any indents to show parent categories, etc. Any help would be appreciated!

Share this post


Link to post
Share on other sites
Kate

I know you mentioned not wanting to really go into the PHP, but one option would be to add `<?php do_shortcode('[html-sitemap exclude=353,1078,1064,1048,1046,1043,1040,1038,1036,1851 sort_column=menu_order]'); ?>` into the PHP file for the 404 page. Second: adding the HTML isn't really a flexible solution... but, when you did that, were you in the dashboard? If so, make sure you're in "HTML" view for the editor.

Share this post


Link to post
Share on other sites
anvilmediainc

I added that code here, to the bottom of the /themes/platformpro/sections/wp/section.noposts.php file: ` <?php endif;?>

<?php get_search_form(); ?>
<?php do_shortcode('[html-sitemap exclude=353,1078,1064,1048,1046,1043,1040,1038,1036,1851 sort_column=menu_order]'); ?>

Share this post


Link to post
Share on other sites
bryan-hadaway

For the sake of anyone else following along I will again recommend a very very easy solution that requires no coding whatsoever. Install this plugin: http://wordpress.org/extend/plugins/redirection/ Then create a page; 404 or Sitemap or whatever you wish and style it however much as you like. You can add `

404

` and any error message or maybe even a more friendly message... You can even add a sitemap with a shortcode to the page: http://wordpress.org/extend/plugins/sitemap-generator/ Then under Tools > Redirection you can set 404 errors to redirect to your newly created page. Couldn't be easier or better. Thanks, Bryan

Share this post


Link to post
Share on other sites
jmelees

The problem with the WP plug-in Redirection is that it's programmed for an Apache web server and PageLines doesn't use Apache. Are there any redirection plugin for IIS web servers?  

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×