Activity Stream
48,167 MEMBERS
6721 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 6 of 6
  1.     
    #1
    Member

    Default how to redirect 404 page to date?

    hello,

    i want to redirect people to mydomain.com/dateoftoday if they come on my website page which doesnt exist

    so if they if its today 10/29/2012 and they acces a 404 page on my website it must redirect them to mydomain.com/10/29/2012 so they can see all new posts of today

    if they acces tomorrow (10/30/2012) it must redirect to mydomain.com/10/30/2012

    can somebody please help? i have 7$ in my paypal, i can give it to u if u want
    dr2015 Reviewed by dr2015 on . how to redirect 404 page to date? hello, i want to redirect people to mydomain.com/dateoftoday if they come on my website page which doesnt exist so if they if its today 10/29/2012 and they acces a 404 page on my website it must redirect them to mydomain.com/10/29/2012 so they can see all new posts of today if they acces tomorrow (10/30/2012) it must redirect to mydomain.com/10/30/2012 can somebody please help? i have 7$ in my paypal, i can give it to u if u want Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    This site is using a hacked database of W junction
    Last edited by Gavo; 4th Jan 2015 at 02:46 PM.

  4.     
    #3
    Member
    im using a custom link short script a guy made me 2 years ago,

    can you please give me htaccess code which can do it? i dont know what to do with the code u give

    htaccess code?

  5.     
    #4
    Member
    This site is using a hacked database of W junction
    Last edited by Gavo; 4th Jan 2015 at 02:46 PM.

  6.     
    #5
    Member
    it doesnt has any data, its just a script index.php which is showing the page?

    i want to completly delete the whole site, all files, and only put a htacces file, can u do it?

    ---------- Post added at 09:32 PM ---------- Previous post was at 05:35 PM ----------

    i got this:


    You can redirect with .htaccess using ErrorDocument 404 /404.php

    And then inside 404.php file get the date and redirect again to mydomain.com/10/29/2012.

    Example code:
    <?php
    $curDate = date("m/d/Y");
    $url="http://www.mydomain.com/".$curDate;
    header('Location:'.$url);
    ?>


    but its redirecting to : mydomain.com/10/29/2012 and i want him to redirect to mydomain.com/10/29/2012.html, how to do it?

    .html at the end how?

  7.     
    #6
    Member
    This site is using a hacked database of W junction
    Last edited by Gavo; 4th Jan 2015 at 01:27 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to make redirect page in wp?
    By flippy07 in forum Wordpress
    Replies: 4
    Last Post: 18th Jul 2012, 08:52 PM
  2. Redirect to Login Page
    By D@rekills4 in forum vBulletin
    Replies: 8
    Last Post: 12th Feb 2011, 05:03 AM
  3. Redirect to Login Page to SMF
    By PBI NetWork in forum Web Application/Script Support
    Replies: 0
    Last Post: 10th Feb 2011, 06:23 PM
  4. Need Help : Home Page Redirect
    By thatswhatshesaid in forum Technical Help Desk Support
    Replies: 4
    Last Post: 3rd Jul 2010, 09:55 PM
  5. Redirect to another html page
    By cybertuga in forum Technical Help Desk Support
    Replies: 5
    Last Post: 3rd Jan 2010, 05:54 PM

Tags for this Thread

BE SOCIAL