• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] 404 Page Redirection

Started by mmahtabsaleem,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mmahtabsaleemTopic starter

Hi , , ,

I have deleted some of videos on my site and now when users come with that video link they stay on 404 page , 
I wants to redirect them main homepage ,

Needs help that what type of code I have to put and where ?  with that when any user comes with the link to deleted video that should be automatically redirected to main homepage with no time ,

waiting for your response thanks
I am using 4.0 version with main theme.(UltimaTube)
  •  

PHPVibe A.

tpl/main/404.php

something like this

redirect(site_url());

after the first
<?php

mmahtabsaleemTopic starter

I have resolved the issue .

Now my website is redirecting to homepage with no wait,
I have just putted a single line in  404.php file ,

header("Location: http://www.yourdomain.com/");



The file setting should be like this.


[quote]<?php  the_header(); 
the_sidebar();
header("Location: http://www.yourdomain.com/");
?>

<div class="error-info main-holder pad-holder span8 nomargin top10">
<h3><?php echo _lang("404"); ?></h3>
<h4><?php echo _lang("oops! page not found"); ?></h4>
<a class="button-center" href="<?php echo site_url(); ?>"><?php echo _lang("Back to home"); ?></a>
</div>
<?php  the_footer(); ?>
[/quote]



This thing will redirect your all 404 visitors to the entered url.
  •  

PHPVibe A.

It's the same thing that redirect() does :)

Similar topics (7)