• Resolved luuuciano

    (@luuuciano)


    Hi there!
    We have actived the plugin, but for some odd known reason when someone goes to https://www.uepc.org.ar/conectate/ it is redirecting to: https://www.uepc.org.ar/
    So… the folder is lost and goes to the main domain
    The proper redirection sould be https://www.uepc.org.ar/conectate/

    The .htaccess file is just this:

    
    # BEGIN rlrssslReallySimpleSSL rsssl_version[3.2.6]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTPS} !=on [NC]
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL
    # BEGIN WordPress
    # Las directivas (líneas) entre <code>BEGIN WordPress</code> y <code>END WordPress</code> se generan dinámicamente, y solo se deberían modificar mediante filtros de WordPress.
    # Cualquier cambio en las directivas que hay entre esos marcadores se sobrescribirá.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /conectate/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /conectate/index.php [L]
    </IfModule>
    
    # END WordPress

    I have tried whitout the 301 redirect too… no idea what is wrong…

    And the urls in the WP Options section are both https://www.uepc.org.ar/conectate/

    Any idea what to check? what can be wrong? /-:

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter luuuciano

    (@luuuciano)

    I have changed the .htaccess content to this:

    # BEGIN WordPress
    # Las directivas (líneas) entre <code>BEGIN WordPress</code> y <code>END WordPress</code> se generan dinámicamente, y solo se deberían modificar mediante filtros de WordPress.
    # Cualquier cambio en las directivas que hay entre esos marcadores se sobrescribirá.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /conectate/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /conectate/index.php [L]
    </IfModule>
    
    # END WordPress
    
    # BEGIN rlrssslReallySimpleSSL rsssl_version[3.2.6]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /conectate/
    RewriteCond %{HTTPS} !=on [NC]
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL

    And… it is odd because it seems that links like:
    https://www.uepc.org.ar/conectate/esi-y-nuevas-masculinidades-entrevista-a-daniel-jones/
    works ok?

    But… when going to https://www.uepc.org.ar/conectate/ it is redirecting to https://www.uepc.org.ar/ ???

    I have tried using this too:

    # BEGIN WordPress
    # Las directivas (líneas) entre <code>BEGIN WordPress</code> y <code>END WordPress</code> se generan dinámicamente, y solo se deberían modificar mediante filtros de WordPress.
    # Cualquier cambio en las directivas que hay entre esos marcadores se sobrescribirá.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /conectate/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /conectate/index.php [L]
    </IfModule>
    
    # END WordPress
    
    # BEGIN rlrssslReallySimpleSSL rsssl_version[3.2.6]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /conectate/
    RewriteCond %{HTTPS} !=on [NC]
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/conectate/$1 [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL
    • This reply was modified 4 years, 12 months ago by luuuciano.
    Plugin Author Mark

    (@markwolters)

    Hi Luciano,

    what you could try is to change the

    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

    line into

    RewriteRule ^(.*)$ https://%{HTTP_HOST}/{REQUEST_URI} [R=301,L]

    Do you happen to be using any other redirection or security plugins? It could be that one of those is preventing the rewrite from functioning correctly. To test this, you can temporarily disable plugins to see if that resolves the issue.

    Mark

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘URL is redirecting to main domain’ is closed to new replies.