Site is not up showing after redirection
-
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 – latestI 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 addedRewriteCond %{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.
- The topic ‘Site is not up showing after redirection’ is closed to new replies.