Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter Babak

    (@babakprs)

    I just tried what you said (setting site url and home url to http), but exacly the same Scenario happened:
    All site’s HTTP to HTTPS redirections work well, but for the requested page:
    1. The HTTPS doesn’t redirect to HTTP and it opens with HTTPS.
    2. If I remove https and enter to the page, then there is a redirect loop.

    Even I tried to uninstall your plugin and just to keep the same code in the htaccess file, but there was no diffrence in the above Scenario!

    Thread Starter Babak

    (@babakprs)

    Sorry, please ignore my above reply. It was my bad and I made a mistake.

    However, still the problem exists!
    So, I disabled redict in Really Simple SSL.
    Then I added the below code to the htaccess file:

    #Begin Really Simple Security
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'
    RewriteCond %{REQUEST_URI} !/ava-family
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'
    RewriteCond %{REQUEST_URI} /ava-family
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>

    Now, all the HTTP to HTTPS redirects work well, but for the requested page:
    1. The HTTPS doesn’t redirect to HTTP and it opens with HTTPS.
    2. If I remove https and enter to the page, then there is a redirect loop.

    Am I missing something?

    Thread Starter Babak

    (@babakprs)

    Thank you Rogier, but by adding the page URI

    RewriteCond %{REQUEST_URI} /ava-family

    as

    `<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:CF-Visitor} ‘”scheme”:”http”‘
    RewriteCond %{REQUEST_URI} /ava-family
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>`

    the totall redirection of HTTP to HTTPS stops!

    Also the second code, causes redirection loop for that page!

    Thread Starter Babak

    (@babakprs)

    This caused loop redirection.
    I can see if i activate the .htaccess redirect method, then I have the bellow code in the .htaccess file:

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:CF-Visitor} ‘”scheme”:”http”‘
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>
    Isn’t is possible to modify this code in order to redirect my post (URL:https://mydomain.com/mypost01/) to HTTP from the HTTPS site?

    • This reply was modified 2 years ago by Babak.
    • This reply was modified 2 years ago by Babak.
    Thread Starter Babak

    (@babakprs)

    BTW, when I check the redirection, I can see there is a redirection, which looks something like below:

    https://mydomain.com/ —>HTTP/1.1 301 Moved Permanently—> https://mydomain.com%/

    If the above SSL setting with Cloudflare are okay, then as you can see there is “%” after “.com”, which probablay causing the issue.
    Do you have any idea hot to remove it?

    Thread Starter Babak

    (@babakprs)

    Can you please elaborate?
    SSL is “Flexible”, “Always Use HTTPS” is off, “Automatic HTTPS Rewrites” is off.
    Is there anything else that I’m missing?

    • This reply was modified 2 years ago by Babak.
    Thread Starter Babak

    (@babakprs)

    Thank you Rogier.
    Do I need to modfiy ^domain.com & ^www.domain.com in to my domain?
    Because if I don’t do that, then http site does not redirect to https at all!
    And if I modify ^domain.com & ^www.domain.com to my domain, then I get the below error:
    This page isn’t working
    mydomain.com sent an invalid response.
    ERR_INVALID_REDIRECT

    Can it be because the SSL is from Cloudflare?

    • This reply was modified 2 years ago by Babak.
    Thread Starter Babak

    (@babakprs)

    Thank you.
    I tried again and after almost 20 mins, I got the error “Website restore times out”.
    You can find the file “wpvivid_restore_log.txt” here:
    https://drive.google.com/file/d/1YSIqR8IffjtFzFsbNMdPdVLTnuiQeCgQ/view?usp=sharing

    Thanks again ??

    Thread Starter Babak

    (@babakprs)

    I waited for hours, but it was just stuck and no failing message. After that, I couldn’t access my site anymore to access to the log files.

    Thread Starter Babak

    (@babakprs)

    Thank you.
    So I’m going to use the command wget –delete-after https://YOUR_SITE_URL/wp-cron.php instead of wget https://YOUR_SITE_URL/wp-cron.php?doing_wp_cron=1 >/dev/null 2>&1.
    Hopefully this works ??

    • This reply was modified 3 years, 10 months ago by Babak.
    Thread Starter Babak

    (@babakprs)

    Thanks Michael for your following up.
    As I wrote above, I needed to disable the PWA plugin and to access to resolve this issue. So I have disabled that plugin as of that time.

    Thread Starter Babak

    (@babakprs)

    Well, I double checked the settings and configurations and didn’t find anything wrong.
    Anyway, thank you for your time and assistance.

    • This reply was modified 4 years, 2 months ago by Babak.
    Thread Starter Babak

    (@babakprs)

    Yes, that’s correct. This is the PWA plugin that I use and when it is active, the categories and tags of custom post types get disappeared.

    Thread Starter Babak

    (@babakprs)

    I just noticed when I disable “PWA for WP” plugin, the categories and tags are being back.
    I need to have PWA for my site and it should be active. Is it possible that your plugin has conflict with “PWA for WP”? and if yes, is there any chance to resolve the issue?

    Thread Starter Babak

    (@babakprs)

    Sure, below you can find it.
    Kindly note the custom post types of “youtube” and “news” are supposed to have wordpress core taxonomies.

    {“extra”:{“name”:”extra”,”label”:”Extra”,”singular_label”:”Extra”,”description”:””,”public”:”true”,”publicly_queryable”:”true”,”show_ui”:”true”,”show_in_nav_menus”:”true”,”delete_with_user”:”false”,”show_in_rest”:”false”,”rest_base”:””,”rest_controller_class”:””,”has_archive”:”false”,”has_archive_string”:””,”exclude_from_search”:”true”,”capability_type”:”post”,”hierarchical”:”false”,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”true”,”query_var”:”true”,”query_var_slug”:””,”menu_position”:”5″,”show_in_menu”:”true”,”show_in_menu_string”:””,”menu_icon”:””,”supports”:[“title”,”editor”,”thumbnail”,”comments”,”revisions”,”author”,”page-attributes”,”post-formats”],”taxonomies”:[],”labels”:{“menu_name”:””,”all_items”:””,”add_new”:””,”add_new_item”:””,”edit_item”:””,”new_item”:””,”view_item”:””,”view_items”:””,”search_items”:””,”not_found”:””,”not_found_in_trash”:””,”parent_item_colon”:””,”featured_image”:””,”set_featured_image”:””,”remove_featured_image”:””,”use_featured_image”:””,”archives”:””,”insert_into_item”:””,”uploaded_to_this_item”:””,”filter_items_list”:””,”items_list_navigation”:””,”items_list”:””,”attributes”:””,”name_admin_bar”:””,”item_published”:””,”item_published_privately”:””,”item_reverted_to_draft”:””,”item_scheduled”:””,”item_updated”:””},”custom_supports”:””},”test”:{“name”:”test”,”label”:”test”,”singular_label”:”test”,”description”:””,”public”:”true”,”publicly_queryable”:”true”,”show_ui”:”true”,”show_in_nav_menus”:”true”,”delete_with_user”:”false”,”show_in_rest”:”false”,”rest_base”:””,”rest_controller_class”:””,”has_archive”:”false”,”has_archive_string”:””,”exclude_from_search”:”true”,”capability_type”:”post”,”hierarchical”:”false”,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”true”,”query_var”:”true”,”query_var_slug”:””,”menu_position”:”5″,”show_in_menu”:”true”,”show_in_menu_string”:””,”menu_icon”:””,”supports”:[“title”,”editor”,”thumbnail”,”custom-fields”,”comments”,”revisions”,”page-attributes”,”post-formats”],”taxonomies”:[],”labels”:{“menu_name”:””,”all_items”:””,”add_new”:””,”add_new_item”:””,”edit_item”:””,”new_item”:””,”view_item”:””,”view_items”:””,”search_items”:””,”not_found”:””,”not_found_in_trash”:””,”parent_item_colon”:””,”featured_image”:””,”set_featured_image”:””,”remove_featured_image”:””,”use_featured_image”:””,”archives”:””,”insert_into_item”:””,”uploaded_to_this_item”:””,”filter_items_list”:””,”items_list_navigation”:””,”items_list”:””,”attributes”:””,”name_admin_bar”:””,”item_published”:””,”item_published_privately”:””,”item_reverted_to_draft”:””,”item_scheduled”:””,”item_updated”:””},”custom_supports”:””},”news”:{“name”:”news”,”label”:”News”,”singular_label”:”News”,”description”:””,”public”:”true”,”publicly_queryable”:”true”,”show_ui”:”true”,”show_in_nav_menus”:”true”,”delete_with_user”:”false”,”show_in_rest”:”true”,”rest_base”:””,”rest_controller_class”:””,”has_archive”:”true”,”has_archive_string”:””,”exclude_from_search”:”true”,”capability_type”:”post”,”hierarchical”:”false”,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”true”,”query_var”:”true”,”query_var_slug”:””,”menu_position”:”5″,”show_in_menu”:”true”,”show_in_menu_string”:””,”menu_icon”:””,”supports”:[“title”,”editor”,”thumbnail”,”excerpt”,”custom-fields”,”comments”,”revisions”,”page-attributes”,”post-formats”],”taxonomies”:[“post_tag”],”labels”:{“menu_name”:””,”all_items”:””,”add_new”:””,”add_new_item”:””,”edit_item”:””,”new_item”:””,”view_item”:””,”view_items”:””,”search_items”:””,”not_found”:””,”not_found_in_trash”:””,”parent_item_colon”:””,”featured_image”:””,”set_featured_image”:””,”remove_featured_image”:””,”use_featured_image”:””,”archives”:””,”insert_into_item”:””,”uploaded_to_this_item”:””,”filter_items_list”:””,”items_list_navigation”:””,”items_list”:””,”attributes”:””,”name_admin_bar”:””,”item_published”:””,”item_published_privately”:””,”item_reverted_to_draft”:””,”item_scheduled”:””,”item_updated”:””},”custom_supports”:””},”youtube”:{“name”:”youtube”,”label”:”YouTube”,”singular_label”:”YouTube”,”description”:””,”public”:”true”,”publicly_queryable”:”true”,”show_ui”:”true”,”show_in_nav_menus”:”true”,”delete_with_user”:”false”,”show_in_rest”:”true”,”rest_base”:””,”rest_controller_class”:””,”has_archive”:”true”,”has_archive_string”:””,”exclude_from_search”:”false”,”capability_type”:”post”,”hierarchical”:”true”,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”true”,”query_var”:”true”,”query_var_slug”:””,”menu_position”:”5″,”show_in_menu”:”true”,”show_in_menu_string”:””,”menu_icon”:””,”supports”:[“title”,”editor”,”thumbnail”,”excerpt”,”trackbacks”,”custom-fields”,”comments”,”revisions”,”page-attributes”,”post-formats”],”taxonomies”:[“category”,”post_tag”],”labels”:{“menu_name”:””,”all_items”:””,”add_new”:””,”add_new_item”:””,”edit_item”:””,”new_item”:””,”view_item”:””,”view_items”:””,”search_items”:””,”not_found”:””,”not_found_in_trash”:””,”parent_item_colon”:””,”featured_image”:””,”set_featured_image”:””,”remove_featured_image”:””,”use_featured_image”:””,”archives”:””,”insert_into_item”:””,”uploaded_to_this_item”:””,”filter_items_list”:””,”items_list_navigation”:””,”items_list”:””,”attributes”:””,”name_admin_bar”:””,”item_published”:””,”item_published_privately”:””,”item_reverted_to_draft”:””,”item_scheduled”:””,”item_updated”:””},”custom_supports”:””}}

Viewing 15 replies - 1 through 15 (of 18 total)