Skip to main content

Comments

5 comments

  • cPanelLauren
    Hi @toplisek Can you clarify specifically what you're trying to achieve? Based on the rewrite you've provided you're attempting to create a wildcard redirect for example.com -> Example Domain Please keep in mind that checking a wild card redirect will redirect all files within a directory to the same filename in the redirected directory - if you're just attempting to force a redirection to SSL the redirect when created inside the cPanel UI looks as follows in the .htaccess: RewriteEngine on RewriteCond %{HTTP_HOST} ^example\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.example\.com$ RewriteRule ^/?$ "https\:\/\/www\.example\.com\/" [R=301,L]
    Thank you,
    0
  • toplisek
    It works your script.Thank you. I have tested again. But an issue that testing and modified HTTPS into HTTP will redirect to Example Domain It seems that forced HTTPS is not enabled as it should force to HTTPS and redirect to
    0
  • cPanelLauren
    Hello, To clarify you're indicating that when adding the redirect as noted above to redirect example.com and www.example.com to https it is not redirecting in Firefox? I am unsure what would cause that behavior but I would assume that there is caching occurring. If this behavior persists after clearing the cache please use the link in my signature to open a ticket so that we can take a closer look. Thank you,
    0
  • toplisek
    Thank you. We will open a ticket.
    0
  • cPanelLauren
    Thank you please post the ticket ID here so that we can update this thread with the outcome.
    0

Please sign in to leave a comment.