Results 1 to 6 of 6
-
29th Oct 2012, 03:18 PM #1OPMember
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 wantdr2015 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
-
29th Oct 2012, 03:36 PM #2Member
This site is using a hacked database of W junction
Last edited by Gavo; 4th Jan 2015 at 02:46 PM.
-
29th Oct 2012, 03:53 PM #3OPMember
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?
-
29th Oct 2012, 04:10 PM #4Member
This site is using a hacked database of W junction
Last edited by Gavo; 4th Jan 2015 at 02:46 PM.
-
29th Oct 2012, 08:32 PM #5OPMember
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?
-
29th Oct 2012, 09:49 PM #6Member
This site is using a hacked database of W junction
Last edited by Gavo; 4th Jan 2015 at 01:27 PM.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How to make redirect page in wp?
By flippy07 in forum WordpressReplies: 4Last Post: 18th Jul 2012, 08:52 PM -
Redirect to Login Page
By D@rekills4 in forum vBulletinReplies: 8Last Post: 12th Feb 2011, 05:03 AM -
Redirect to Login Page to SMF
By PBI NetWork in forum Web Application/Script SupportReplies: 0Last Post: 10th Feb 2011, 06:23 PM -
Need Help : Home Page Redirect
By thatswhatshesaid in forum Technical Help Desk SupportReplies: 4Last Post: 3rd Jul 2010, 09:55 PM -
Redirect to another html page
By cybertuga in forum Technical Help Desk SupportReplies: 5Last Post: 3rd Jan 2010, 05:54 PM
themaPoster - post to forums and...
Version 5.22 released. Open older version (or...