• Resolved Aeit

    (@mynicknamehasbenstolen)


    Well this may be a long story to read.

    Ok basic info:
    WP – latest
    Kallyas theme – latest – updated by easy theme and plugin installer
    Revolution slider – latest
    Back up buddy – latest
    Yoast Seo Premium – latest
    iThemes Security Pro – latest

    I made a simple site in sub folder and after everything was completed i have created redirection on domain to that sub folder. Then changed site and home urls in wp settings to that domain.
    And it wasnt working. I was getting redirected to old site tats been located inside public_folder root.
    I have struggled for 2 days with service provider briefly explaining them that its not the first time im doing such thing and it was always working smooth. Asking why site always get redirected form desired domain name to host domain (name.host.com instead of name.com) they said thats the problem of wordpress and how it handles redirection. Complete bullshit … so i checked .htaccess files and they were looking exactly the same as on my previous sites
    on same web hosting service. With one exception … in this case WP generates not one .htaccess inside sub folder but also second one inside public_folder.
    The redirection wasnt working until i added

    RewriteCond %{HTTP_HOST} ^example.host.com [NC,OR]
    RewriteCond %{HTTP_HOST} ^www.example.host.com [NC]
    RewriteRule ^(.*)$ https://example.com/$1 [L,R=301,NC]

    And finally my default domain name wasnt showing … just my desired domian.

    I havent experienced that problem making previous site (same web provider), no additional conditions were needed.

    After that … wordpress should pop up since its url addresses were set to my domain.
    Checked twice in database if they match the redirection i made.

    I will post .htacces form both subfolder and public_folder now:

    Subfolder

    RewriteCond %{HTTP_HOST} ^example.host.com [NC,OR]
    RewriteCond %{HTTP_HOST} ^www.example.host.com [NC]
    RewriteRule ^(.*)$ https://example.com/$1 [L,R=301,NC]
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    public_folder

    RewriteCond %{HTTP_HOST} ^example.host.com [NC,OR]
    RewriteCond %{HTTP_HOST} ^www.example.host.com [NC]
    RewriteRule ^(.*)$ https://example.com/$1 [L,R=301,NC]
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /subfolder.name/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /subfolder.name/index.php [L]
    </IfModule>
    
    # END WordPress

    Pretty basic, even if no additional iThemes Security Pro rules where added. Site isnt showing
    just white despair.

    Sorry if you found that chaotic but i think that you get the point of what i tried to say.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    I’ve nearly a dozen different sites on various hosts, all installed in sub-directories accessed with unique domain names and not one installation ever entered any .htaccess code in root.

    Did you use the hosts installation script in cPanel or whatever or did you FTP your own downloaded files and use the wp-admin/install.php script? If the former, that may explain things. Hosts are free to modify installations any way they want, which may not be compatible with your unique needs.

    Thread Starter Aeit

    (@mynicknamehasbenstolen)

    10 minutes after i posted this i have solved my problem.
    I was mislead by WSP … no redirection are needed … none.
    I cleaned .htaccess’es and every change i made that was unnecessary.

    As you might notice i have installed backup buddy which is outstanding when migrating form both local or private servers.
    But the problem was …
    Web provider has it own panel … its not even close to cPanel … its very hard to use and confusing so no surprise i did something wrong.

    While redirecting there are few options where 2 of them are used to redirect to sub folder
    one of them is called “without separating service” and second “with service separation”
    I miss clicked the second one and forgot about that …
    None of “IT team” knew about it blaming wordpress and my configuration.
    Bunch of losers.

    Anyways thanks for reply and maybe this will help someone in feature.

    Moderator bcworkz

    (@bcworkz)

    All righty then ??
    It seems everyone is a little too quick to blame the other guy. I’ve probably done the same. Support people need to think about the poor user stuck in the middle while we’re pointing fingers at each other.

    Anyway, I’m glad you resolved the issue. Thanks for reporting back. I’ll go ahead an mark this topic as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Site is not up showing after redirection’ is closed to new replies.