Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Reach Wordpress Site, But Admin Doesn't not loads

    WordPress (Managed)
    4
    8
    144
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      austinsonger last edited by

      Main Site
      2020-08-07 10_26_21-Austin Songer – Cyber Security - Brave.png

      Admin Site
      2020-08-07 10_25_20-songer.pro - Brave.png
      bolded text

      I would like to fix this so I can update my website.
      I restarted the app, but did not fix it.

      1 Reply Last reply Reply Quote 0
      • marcusquinn
        marcusquinn last edited by

        Have you tried without specifying the port?

        We're not here for a long time - but we are here for a good time :)
        Jersey/UK
        Work & Ecommerce Advice: https://brandlight.org
        Personal & Software Tips: https://marcusquinn.com

        1 Reply Last reply Reply Quote 0
        • A
          austinsonger last edited by

          Yes....

          It actually times out and then shows the port, I would never setup my wordpress, with the port being displayed.

          The system is basically doing it by itself.

          1 Reply Last reply Reply Quote 1
          • girish
            girish Staff last edited by girish

            @austinsonger https://domain.com/wp-admin/ loads for me. The trailing slash is important! I guess you got hit by this bug - https://git.cloudron.io/cloudron/wordpress-app/-/issues/40

            d19dotca 1 Reply Last reply Reply Quote 3
            • marcusquinn
              marcusquinn last edited by marcusquinn

              Interesting read on this subject:

              • https://www.danielmorell.com/guides/htaccess-seo/redirects/https-www-and-trailing-slash

              Be good to have this as standard in all installs!

              We're not here for a long time - but we are here for a good time :)
              Jersey/UK
              Work & Ecommerce Advice: https://brandlight.org
              Personal & Software Tips: https://marcusquinn.com

              1 Reply Last reply Reply Quote 0
              • A
                austinsonger last edited by

                I was doing that. But I did a server reboot and it started working afterwords.

                1 Reply Last reply Reply Quote 1
                • marcusquinn
                  marcusquinn last edited by

                  • https://www.danielmorell.com/guides/htaccess-seo/sample-code/redirect-sample-code

                  tl;dr

                  .htaccess for www.

                  (www maybe better when needing to use a CNAME to point to a load balancer domain, this approach is used by Google.com, Odoo.com enterprise etc)

                  #### Force HTTPS
                  #### Force WWW
                  #### Remove trailing / from file
                  
                  # Turn on Rewrite Engine
                  RewriteEngine On
                  
                  # Remove trailing slash from non-filepath urls
                  RewriteCond %{REQUEST_URI} /(.+)/$
                  RewriteCond %{REQUEST_FILENAME} !-d
                  RewriteRule ^ https://www.example.com/%1 [R=301,L]
                  
                  # Include trailing slash on directory 
                  RewriteCond %{REQUEST_URI} !(.+)/$
                  RewriteCond %{REQUEST_FILENAME} -d
                  RewriteRule ^(.+)$ https://www.example.com/$1/ [R=301,L]
                  
                  # Force HTTPS and WWW 
                  RewriteCond %{HTTP_HOST} !^www\.(.*)$ [OR,NC]
                  RewriteCond %{https} off  
                  RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
                  

                  .htaccess for root domain

                  (my preferred, simpler but could be more restrictive for enterprise scaling)

                  #### Force HTTPS
                  #### Remove WWW
                  #### Remove trailing / from file
                  
                  # Turn on Rewrite Engine
                  RewriteEngine On
                  
                  # Remove trailing slash from non-filepath urls
                  RewriteCond %{REQUEST_URI} /(.+)/$
                  RewriteCond %{REQUEST_FILENAME} !-d
                  RewriteRule ^ https://example.com/%1 [R=301,L]
                  
                  # Include trailing slash on directory 
                  RewriteCond %{REQUEST_URI} !(.+)/$
                  RewriteCond %{REQUEST_FILENAME} -d
                  RewriteRule ^(.+)$ https://example.com/$1/ [R=301,L]
                  
                  # Force HTTPS and remove WWW
                  RewriteCond %{HTTP_HOST} ^www\.(.*)$ [OR,NC]
                  RewriteCond %{https} off  
                  RewriteRule ^(.*)$ https://example.com/$1 [R=301,L]
                  

                  We're not here for a long time - but we are here for a good time :)
                  Jersey/UK
                  Work & Ecommerce Advice: https://brandlight.org
                  Personal & Software Tips: https://marcusquinn.com

                  1 Reply Last reply Reply Quote 0
                  • d19dotca
                    d19dotca @girish last edited by

                    @girish I was actually going to post this before too... that trailing slash is important. However, this behaviour only seems to impact the managed app. The unmanaged app doesn't require that trailing slash. Any ideas why these are different?

                    --
                    Dustin Dauncey
                    www.d19.ca

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Powered by NodeBB