afaaro 0 Newbie Poster

Hi guys

I need help with redirecting from post?id=11111 to index.php?page=post&title=title&id=11111

Solved and got solution from this link https://www.daniweb.com/web-development/php/threads/489469/how-to-redirect-dynamic-url-using-php

$curPageURL="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
    $url="http://abc.com/gallery.php?id=1";
    if($curPageURL == $url)  
    {
        header("Location: http://abc.com/error404");
        }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.