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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. WordPress (Managed)
  3. Reach Wordpress Site, But Admin Doesn't not loads

Reach Wordpress Site, But Admin Doesn't not loads

Scheduled Pinned Locked Moved Solved WordPress (Managed)
8 Posts 4 Posters 1.2k Views 4 Watching
  • 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 Offline
    A Offline
    austinsonger
    wrote on last edited by
    #1

    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
    0
    • marcusquinnM Offline
      marcusquinnM Offline
      marcusquinn
      wrote on last edited by
      #2

      Have you tried without specifying the port?

      Web Design https://www.evergreen.je
      Development https://brandlight.org
      Life https://marcusquinn.com

      1 Reply Last reply
      0
      • A Offline
        A Offline
        austinsonger
        wrote on last edited by
        #3

        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
        1
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by girish
          #4

          @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

          d19dotcaD 1 Reply Last reply
          3
          • marcusquinnM Offline
            marcusquinnM Offline
            marcusquinn
            wrote on last edited by marcusquinn
            #5

            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!

            Web Design https://www.evergreen.je
            Development https://brandlight.org
            Life https://marcusquinn.com

            1 Reply Last reply
            0
            • A Offline
              A Offline
              austinsonger
              wrote on last edited by
              #6

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

              1 Reply Last reply
              1
              • marcusquinnM Offline
                marcusquinnM Offline
                marcusquinn
                wrote on last edited by
                #7
                • 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]
                

                Web Design https://www.evergreen.je
                Development https://brandlight.org
                Life https://marcusquinn.com

                1 Reply Last reply
                0
                • girishG 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

                  d19dotcaD Offline
                  d19dotcaD Offline
                  d19dotca
                  wrote on last edited by
                  #8

                  @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
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search