separate prerendered static page for open graph crawlers on netlify ( cant redirect by detecting bots ) [closed]

I want to create high browser cached shell app which is basically one cached file index.html which works like spa and it uses progressive enchantment to fill with content, but there is problem for open graph meta tags for Facebook, LinkedIn, Twitter, and of course with SEO also ( yes I know that these days google can parse JavaScript oriented applications but others can’t ), and we cant redirect on server side by bot detection because we are using static file hosting like netlify, so basic idea is this:

put canonical url for every page to redirect crawler to /seo/$ page, and on /seo subfolder we will be serving pre-rendered static pages which contains all open graph tags and also don’t contain all the css ans JavaScript, just content and html tags ( this is not necessary but idea ise to optimize unnecessary bandwidth )

Would this solution be considered good practice? Would this solution be considered cloaking? What are downsides of this solution? Is it considered bad practice to serve “striped down” pages to bots? ( with same content but not all functionality ) Do you maybe have any other proposition how to handle static pre-rendered pages that will be used for SEO and open graph tags and be served only to bots

and most important question is beacuse i suppose that links in google search will then be with additional parameter /seo/ which is not good, is there any solution to force google to use original links or to redirect to /og/ urls just for serving open graph tags for facebook and other social network regarding information that google actually can parse javascript today.

Would sitemap.xml or robots.txt somehow be helpful for redirecting just facebook parser?

ilkmawgod.site redirect [duplicate]

Recently when I was visiting a website, just clicking (not even on a link; lets say on some text or blank space) I was redirected by something (which was given as ilkmawgod.site…… in the address bar) to a malicious webpage (install.getVideoConverter.com). Now when I visited another site, I was redirected by this same thing (ilkmawgod.site) to another malicious webpage (which asked to download adobe flash). On some websites I get weird ads (which I think are malicious links) despite having an ad-blocker (which blocks all other ads). I removed the cookies(the malicious ones) and blocked them. I scanned my computer using windows defender and windows safety scanner, but they found nothing. So I thought that the websites may be redirecting me. But when I visit the websites using a different device on the same network, I am not redirected. Further more, I am not redirected every time (like on visiting every website), so this is not a browser hijacker. I don’t know if my browser is infected or what is wrong. Is there a reason to worry? What should I do? Any help is greatly appreciated.

Redirect page during a weekly time interval

I have a registration page ‘register’ which sends information to a third party server as part of a dual registration process. The 3rd party have a 2 hr weekly maintenance schedule every Friday 9-11pm CT. I wish to redirect users to a new page that just says you can’t register during this specified maintenance time period.

I am considering using the below added to functions.php. Is this the right approach, does it look like it would work? I don’t want to reset the entire site’s time zone either, as not in America, just for this usage.

add_action ( 'template_redirect', 'redirect_from_registration_maintenance' ); function redirect_from_registration_maintenance(){     date_default_timezone_set('America/Chicago');     $  hour = date('G');     $  minute = date('i');     $  day = date('w');     $  m = $  hour * 60 + $  minute; // Minutes since midnight. if ( !is_user_logged_in() && is_page( 'register' )   && $  day == 5 // Friday...   && $  m >= 1260 // ... after 9pm…   && $  m <= 1380 // ... but before 11pm… ) {     wp_redirect('https://www.example.com/maintenance_notice') ; exit();     } } 

Thanks

How do you redirect a subdomain and mask the URL?

I'm able to redirect a subdomain to a different folder on the server but need to mask it as well so it doesn't show as "subdomain.domain.com/folder" but rather "subdomain.domain.com".

Here's what I'm using for the redirect:
RewriteCond %{REQUEST_URI} ^/folder1 [NC]
RewriteRule .* subdomain1.co.luxury [P,L]

Any solution or ideas are appreciated.
Thanks,
Eric

SQLMAP Redirect using xampp

I am learning SQLi using sqlmap and xampp, I set up same way as per tutorial but when i run sqlmap.py -u “http://localhost/bwapp/sqli_1.php?title=1*” , the error got 302 redirect to http://localhost:80/bwapp/login.php and when i clicked either yes or no ,then the error “you have not declared cookies , while server wants to set its own….”. May I know how to solve this issue?

Redirect www to naked domain [closed]

I have a Google domain and whenever the user enters it in their browser with www, I want it to redirect to the naked domain without the www.

I tried adding the www as a CNAME and then under Synthetic records, I added subdomain redirect with the subdomain set to www and the redirect set to my domain (with https prepended to it).

But I get an error of:

This synthetic record has an error and will not function correctly

Github is a good example of how it redirects from www.github.com to just gibhub.com.

Sub domain Redirect problem [closed]

When using a sub domain it redirects to my default page/domain. This only happens when using HTTPS.. for example

https://forums.example.net – takes me to mydomain.net …BUT http://forums.example.net – takes me to the forums

I’m using Apache2 & Ubunutu 18.04 using my own VPS.

((sites-enabled)) 000-default.conf RewriteEngine on RewriteCond %{SERVER_NAME} =bans.raiderzmc.net [OR] RewriteCond %{SERVER_NAME} =status.raiderzmc.net [OR] RewriteCond %{SERVER_NAME} =raiderzmc.net [OR] RewriteCond %{SERVER_NAME} =forums.raiderzmc.net RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

vim: syntax=apache ts=4 sw=4 sts=4 sr noet

DocumentRoot /var/www/html/raiderzmc.net/ ServerName raiderzmc.net

<Directory /var/www/html/raiderzmc.net/>     Options +Indexes +FollowSymLinks +MultiViews +Includes     AllowOverride FileInfo Options     Order allow,deny     allow from all </Directory> 

RewriteEngine on RewriteCond %{SERVER_NAME} =raiderzmc.net RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

DocumentRoot /var/www/html/bans.raiderzmc.net/ ServerName bans.raiderzmc.net

<Directory /var/www/html/bans.raiderzmc.net/>     Options +Indexes +FollowSymLinks +MultiViews +Includes     AllowOverride FileInfo Options     Order allow,deny     allow from all </Directory> 

RewriteEngine on RewriteCond %{SERVER_NAME} =raiderzmc.net [OR] RewriteCond %{SERVER_NAME} =bans.raiderzmc.net [OR] RewriteCond %{SERVER_NAME} =forums.raiderzmc.net RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

DocumentRoot /var/www/html/forums.raiderzmc.net/ ServerName forums.raiderzmc.net

<Directory /var/www/html/forums.raiderzmc.net/>     Options +Indexes +FollowSymLinks +MultiViews +Includes     AllowOverride FileInfo Options     Order allow,deny     allow from all </Directory> 

RewriteEngine on RewriteCond %{SERVER_NAME} =raiderzmc.net [OR] RewriteCond %{SERVER_NAME} =forums.raiderzmc.net RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

DocumentRoot /var/www/html/status.raiderzmc.net/ ServerName status.raiderzmc.net

<Directory /var/www/html/status.raiderzmc.net/>     Options +Indexes +FollowSymLinks +MultiViews +Includes     AllowOverride FileInfo Options     Order allow,deny     allow from all </Directory> 

SSL Config – 00-default-le-ssl

DocumentRoot /var/www/html/raiderzmc.net/ ServerName raiderzmc.net

<Directory /var/www/html/raiderzmc.net/>     Options +Indexes +FollowSymLinks +MultiViews +Includes     AllowOverride FileInfo Options     Order allow,deny     allow from all </Directory> 

Include /etc/letsencrypt/options-ssl-apache.conf ServerAlias forums.raiderzmc.net ServerAlias bans.raiderzmc.net ServerAlias status.raiderzmc.net SSLCertificateFile /etc/letsencrypt/live/bans.raiderzmc.net-0001/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/bans.raiderzmc.net-0001/privkey.pem DocumentRoot /var/www/html/forums.raiderzmc.net/ ServerName forums.raiderzmc.net

<Directory /var/www/html/forums.raiderzmc.net/>     Options +Indexes +FollowSymLinks +MultiViews +Includes     AllowOverride FileInfo Options     Order allow,deny     allow from all </Directory> 

DocumentRoot /var/www/html/bans.raiderzmc.net/ ServerName bans.raiderzmc.net

<Directory /var/www/html/bans.raiderzmc.net/>     Options +Indexes +FollowSymLinks +MultiViews +Includes     AllowOverride FileInfo Options     Order allow,deny     allow from all </Directory> 

DocumentRoot /var/www/html/status.raiderzmc.net/ ServerName status.raiderzmc.net

<Directory /var/www/html/status.raiderzmc.net/>     Options +Indexes +FollowSymLinks +MultiViews +Includes     AllowOverride FileInfo Options     Order allow,deny     allow from all </Directory> 

Apache, Redirect is not working for substring

Issue

In apache, how can I redirect to homepage in case if you will go to exact string, but everything behind this string should be displayed normally, no redirect.

Example.

http://example.com/STRING -> go to homepage http://example.com/STRING_PAGE -> go to http://example.com/STRING_PAGE 

I tried

Redirect 301 /STRING http://example.com/ 

But in this case page is redirected to homepage too, for example in case of http://example.com/STRING_PAGE.

Thanks.