Webmaster Forum

Go Back   Webmaster Forum > Web Development > Web Hosting Forum

Web Hosting Forum Discuss web hosting related stuff.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 06-07-2016, 11:25 AM
Aaryashah2016 Aaryashah2016 is offline
Junior Member
 
Join Date: 03-21-16
Location: India
Posts: 26
iTrader: 0 / 0%
How to Redirect 404 Error Pages to Home Page without Affecting Server

Hi,

I have website which have received 650K Visitor in March & Due to this Traffic Website was Down in April. I have changed Hosting to Other Companies But Same Issue.

I was too Frustrated, So I moved it to Blogger. In Mean Time I was also looking for Good VPS Server & I got it.

in Blogger My Permalinks was Year/Month/Post-Name.html While in Wordpress It was /Post-Name. Site was live on Blogger for Just 2 Days.

I am getting Error Pages " Year/Month/Post-Name.html " & " Year/Month/Post-Name.html?m=1 " & I want to Move all of them to Home Page without Affecting My VPS Server.

Please Help Me.
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 06-07-2016, 01:18 PM
Rob Whisonant's Avatar
Rob Whisonant Rob Whisonant is offline
Contributing Member
 
Join Date: 05-23-16
Location: Fort Lauderdale, FL
Posts: 75
iTrader: 0 / 0%
I'm assuming you want to redirect your Worpress 404 page to the home page? If that is the case just edit your 404.php page and add the following to the top.
PHP Code:
<?php
header
("HTTP/1.1 301 Moved Permanently");
header("Location: ".get_bloginfo('url'));
exit();
?>
 
Reply With Quote
  #3  
Old 06-07-2016, 11:33 PM
Aaryashah2016 Aaryashah2016 is offline
Junior Member
 
Join Date: 03-21-16
Location: India
Posts: 26
iTrader: 0 / 0%
Hi,

Thanks a Lot for Your help. I need to Make It. But What Do You think About Server Load ? Will This Impact too Bad on Server or Not ?
 
Reply With Quote
  #4  
Old 06-07-2016, 11:37 PM
Rob Whisonant's Avatar
Rob Whisonant Rob Whisonant is offline
Contributing Member
 
Join Date: 05-23-16
Location: Fort Lauderdale, FL
Posts: 75
iTrader: 0 / 0%
Quote:
Originally Posted by Aaryashah2016 View Post
Hi,

Thanks a Lot for Your help. I need to Make It. But What Do You think About Server Load ? Will This Impact too Bad on Server or Not ?
Should have very minimum impact on the server load.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Hosting Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the best 404 error or redirect page? THE X FILES Web Usability 24 11-11-2011 03:52 PM
301 redirect gives 500 server error seonewbee Coding Forum 1 09-18-2004 09:11 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 12:03 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC