Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Author « Topic »  

nickm
Advanced Member

Germany
443 Posts

Pre-sales questions only
(More Details...)

Posted - 01/31/2019 :  19:36:50  
Is it possible to cron the "On vacation" function so that it can be time-activated?

Andy
ECT Moderator

95440 Posts

Posted - 02/01/2019 :  00:03:20  
Hi Nick

Not that I'm aware of although maybe a developer could do something for you.

Andy

Please feel free to review / rate our software

V45
Advanced Member

United Kingdom
416 Posts

Pre-sales questions only
(More Details...)

Posted - 02/04/2019 :  15:20:42  
I have vacation page & maintenance page on the server. When it's time to trot off on holiday or crack on with some maintenance this is my solution.

What I have done is to force all traffic to the vacation page via .htaccess in the root directory. Takes less than two minutes. I just add the following to .htaccess using either FTP or cPanel. The following can also be used to show a maintenance page. Just change the page highlighted in bold red so that your chosen page shows.

As it's a temporary redirect, as highlighted in bold blue, the search engines also know the score

# VACATION-PAGE REDIRECT
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.000
RewriteCond %{REQUEST_URI} !/[red]vacation.html[/red]$ [NC]
RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC]
RewriteRule .* /[red]vacation.html[/red] [[blue]R=302[/blue],L]
</IfModule>

or

# MAINTENANCE-PAGE REDIRECT
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.000
RewriteCond %{REQUEST_URI} !/[red]maintenance.html[/red]$ [NC]
RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC]
RewriteRule .* /[red]maintenance.html[/red] [[blue]R=302[/blue],L]
</IfModule>

Will - Bolton Manchester UK

Dan
Advanced Member

Canada
106 Posts

Pre-sales questions only
(More Details...)

Posted - 02/08/2019 :  12:54:30  
Hello;

This looks like a good solution for me. But I have a question or two.

The R=302,L will allow how long of a hold on the site activity? The 302 is temporary but is there some type of time limit?

Where exactly are you placing the code in the .htaccess? Right at the head? Or all by itself in a new .htaccess file?

Edited by - Dan on 02/08/2019 12:56:09

V45
Advanced Member

United Kingdom
416 Posts

Pre-sales questions only
(More Details...)

Posted - 02/08/2019 :  15:13:03  
As I am aware there isn't a duration set in stone. The search engines will take it that the regular site will return in the near future.

Nope, no new .htaccess file, I always place it the first entry in the .htaccess as it's only residing there itself on a temporary basis

I have just come across this regarding that Google may at some point treat a 302 redirect as a 301 permanent redirect - [url]https://www.seroundtable.com/google-302-301-permanent-redirect-21045.html[/url]

Will - Bolton Manchester UK

Edited by - V45 on 02/08/2019 15:43:06

Dan
Advanced Member

Canada
106 Posts

Pre-sales questions only
(More Details...)

Posted - 02/08/2019 :  16:26:54  
Hello Will;

Ok thanks. This helps a lot

Dan
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000