Wordpress Homepage blank but other workingRewrite rule for subfolderWant to Change URL from www.domain.com/home to www.domain.comhtaccess url re-styling image url to seo friendlyRedirect 301 .htaccess not workingPermalinks do not work on Wordpress + centos7Infinite loop old index file old WP installation to NewWordPress admin pages redirecting to homepageWordpress permalinks does not work on server404 issue in two htaccess in root domain and subfolerNot working my .htaccess and config files
Old story where computer expert digitally animates The Lord of the Rings
Why was Pan Am Flight 103 flying over Lockerbie?
Other homotopy invariants?
Are the Gray and Death Slaad's Bite and Claw attacks magical?
What is the function of const specifier in enum types?
Why is my external HDD active when I'm not using it?
Why doesn't SpaceX land boosters in Africa?
How to install gcov-tool to RHEL?
Are all notation equal by derivatives?
Are there advantages in writing by hand over typing out a story?
What prevents a US state from colonizing a smaller state?
Disk usage confusion: 10G missing on Linux home partition on SSD
What happened to the Apollo 1 rocket?
How to track mail undetectably?
Using quotation marks and exclamation marks
German idiomatic equivalents of 能骗就骗 (if you can cheat, then cheat)
Why will we fail creating a self sustaining off world colony?
Can I deep fry food in butter instead of vegetable oil?
Angular: Using ComponentFactoryResolver for dynamic instantiation of the components, rendering inside SVG
usage of y" not just for locations?
A quine of sorts
What is the meaning of "it" in "as luck would have it"?
Tricky riddle from sister
What caused the flashes in the video footage of Chernobyl?
Wordpress Homepage blank but other working
Rewrite rule for subfolderWant to Change URL from www.domain.com/home to www.domain.comhtaccess url re-styling image url to seo friendlyRedirect 301 .htaccess not workingPermalinks do not work on Wordpress + centos7Infinite loop old index file old WP installation to NewWordPress admin pages redirecting to homepageWordpress permalinks does not work on server404 issue in two htaccess in root domain and subfolerNot working my .htaccess and config files
I currently have this .htaccess file inside my wordpress folder.
# 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
Redirect 301 / http://afh.asso.fr/presentation
I wanted to redirect http://afh.asso.fr to http://afh.asso.fr/presentation
How is that possible with my current .htaccess file ?
Thank you so much for any help, I really appreciate it :)
Explained otherwise:
I have this website that works fine :
https://afh.asso.fr/avec-lafh/qui-sommes-nous/histoire-de-lafh-en-video/
Every page is ok.
But http://www.afh.asso.fr is not ok (the home page).
How could I redirect this afh.asso.fr to another page, specifying the url myself in a .htaccess file for example ?
I already have .htaccess file for wordpress.
Thanks in advance for any help!
wordpress .htaccess redirect
add a comment |
I currently have this .htaccess file inside my wordpress folder.
# 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
Redirect 301 / http://afh.asso.fr/presentation
I wanted to redirect http://afh.asso.fr to http://afh.asso.fr/presentation
How is that possible with my current .htaccess file ?
Thank you so much for any help, I really appreciate it :)
Explained otherwise:
I have this website that works fine :
https://afh.asso.fr/avec-lafh/qui-sommes-nous/histoire-de-lafh-en-video/
Every page is ok.
But http://www.afh.asso.fr is not ok (the home page).
How could I redirect this afh.asso.fr to another page, specifying the url myself in a .htaccess file for example ?
I already have .htaccess file for wordpress.
Thanks in advance for any help!
wordpress .htaccess redirect
Any help, please?
– Julien
Mar 25 at 17:50
add a comment |
I currently have this .htaccess file inside my wordpress folder.
# 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
Redirect 301 / http://afh.asso.fr/presentation
I wanted to redirect http://afh.asso.fr to http://afh.asso.fr/presentation
How is that possible with my current .htaccess file ?
Thank you so much for any help, I really appreciate it :)
Explained otherwise:
I have this website that works fine :
https://afh.asso.fr/avec-lafh/qui-sommes-nous/histoire-de-lafh-en-video/
Every page is ok.
But http://www.afh.asso.fr is not ok (the home page).
How could I redirect this afh.asso.fr to another page, specifying the url myself in a .htaccess file for example ?
I already have .htaccess file for wordpress.
Thanks in advance for any help!
wordpress .htaccess redirect
I currently have this .htaccess file inside my wordpress folder.
# 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
Redirect 301 / http://afh.asso.fr/presentation
I wanted to redirect http://afh.asso.fr to http://afh.asso.fr/presentation
How is that possible with my current .htaccess file ?
Thank you so much for any help, I really appreciate it :)
Explained otherwise:
I have this website that works fine :
https://afh.asso.fr/avec-lafh/qui-sommes-nous/histoire-de-lafh-en-video/
Every page is ok.
But http://www.afh.asso.fr is not ok (the home page).
How could I redirect this afh.asso.fr to another page, specifying the url myself in a .htaccess file for example ?
I already have .htaccess file for wordpress.
Thanks in advance for any help!
wordpress .htaccess redirect
wordpress .htaccess redirect
edited Mar 25 at 17:50
Julien
asked Mar 25 at 17:00
JulienJulien
492 silver badges11 bronze badges
492 silver badges11 bronze badges
Any help, please?
– Julien
Mar 25 at 17:50
add a comment |
Any help, please?
– Julien
Mar 25 at 17:50
Any help, please?
– Julien
Mar 25 at 17:50
Any help, please?
– Julien
Mar 25 at 17:50
add a comment |
2 Answers
2
active
oldest
votes
Try the below:
Redirect 301 / /avec-lafh/qui-sommes-nous/presentation/
EDIT:
It looks like your using WordPress too, can you not change your homepage to a visible page, to do this:
- Go to settings
- Click Reading
- Select page you'd like to be the homepage.
Thank you, a page was already selected and it does not load this page... I really do not understand now...
– Julien
Mar 25 at 22:14
Which page is selected? Does it use a set template? You could try using front-page.php, this will be your homepage by default.
– Jonny
Mar 25 at 22:15
Thank you for your fast answer Jonny :) Whatever page I chose, it does not work. I tried with many, that are working otherwise on the website. What is front-page.php ? How can I set this up ?
– Julien
Mar 25 at 22:17
If you name a php file front-page.php and add some dummy text, see if it pulls into your homepage?
– Jonny
Mar 25 at 22:23
Where do I need to name that php file and put it ? Via FTP ?
– Julien
Mar 26 at 5:26
|
show 4 more comments
You can insert a redirect rule before default WP front controller rule:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^/?$ presentation [L,R=301]
RewriteRule ^index.php$ - [L]
RewriteCond %REQUEST_FILENAME !-f
RewriteCond %REQUEST_FILENAME !-d
RewriteRule . /index.php [L]
</IfModule>
Regex ^/?$
will match landing page and redirect to /presentation
with 301
status code.
Thank you so much for your answer. This redirection does not work, I still have the same blank page on Home and everything else working :(
– Julien
Mar 25 at 22:14
Yes, unfortunately…
– Julien
Mar 26 at 5:47
Test in Chrome dev tool with caching disabled and check in Networking tab what are 301/302 redirect URLs you get.
– anubhava
Mar 26 at 6:31
Thank you for your answer. I do not get any redirection, how is that even possible... I have two requests, one for favicon and one for afh.asso.fr.
– Julien
Mar 26 at 8:54
That means this htacceas is not being used. WP might be using some proxy plug-in
– anubhava
Mar 27 at 2:45
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55342941%2fwordpress-homepage-blank-but-other-working%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try the below:
Redirect 301 / /avec-lafh/qui-sommes-nous/presentation/
EDIT:
It looks like your using WordPress too, can you not change your homepage to a visible page, to do this:
- Go to settings
- Click Reading
- Select page you'd like to be the homepage.
Thank you, a page was already selected and it does not load this page... I really do not understand now...
– Julien
Mar 25 at 22:14
Which page is selected? Does it use a set template? You could try using front-page.php, this will be your homepage by default.
– Jonny
Mar 25 at 22:15
Thank you for your fast answer Jonny :) Whatever page I chose, it does not work. I tried with many, that are working otherwise on the website. What is front-page.php ? How can I set this up ?
– Julien
Mar 25 at 22:17
If you name a php file front-page.php and add some dummy text, see if it pulls into your homepage?
– Jonny
Mar 25 at 22:23
Where do I need to name that php file and put it ? Via FTP ?
– Julien
Mar 26 at 5:26
|
show 4 more comments
Try the below:
Redirect 301 / /avec-lafh/qui-sommes-nous/presentation/
EDIT:
It looks like your using WordPress too, can you not change your homepage to a visible page, to do this:
- Go to settings
- Click Reading
- Select page you'd like to be the homepage.
Thank you, a page was already selected and it does not load this page... I really do not understand now...
– Julien
Mar 25 at 22:14
Which page is selected? Does it use a set template? You could try using front-page.php, this will be your homepage by default.
– Jonny
Mar 25 at 22:15
Thank you for your fast answer Jonny :) Whatever page I chose, it does not work. I tried with many, that are working otherwise on the website. What is front-page.php ? How can I set this up ?
– Julien
Mar 25 at 22:17
If you name a php file front-page.php and add some dummy text, see if it pulls into your homepage?
– Jonny
Mar 25 at 22:23
Where do I need to name that php file and put it ? Via FTP ?
– Julien
Mar 26 at 5:26
|
show 4 more comments
Try the below:
Redirect 301 / /avec-lafh/qui-sommes-nous/presentation/
EDIT:
It looks like your using WordPress too, can you not change your homepage to a visible page, to do this:
- Go to settings
- Click Reading
- Select page you'd like to be the homepage.
Try the below:
Redirect 301 / /avec-lafh/qui-sommes-nous/presentation/
EDIT:
It looks like your using WordPress too, can you not change your homepage to a visible page, to do this:
- Go to settings
- Click Reading
- Select page you'd like to be the homepage.
answered Mar 25 at 19:41
JonnyJonny
599 bronze badges
599 bronze badges
Thank you, a page was already selected and it does not load this page... I really do not understand now...
– Julien
Mar 25 at 22:14
Which page is selected? Does it use a set template? You could try using front-page.php, this will be your homepage by default.
– Jonny
Mar 25 at 22:15
Thank you for your fast answer Jonny :) Whatever page I chose, it does not work. I tried with many, that are working otherwise on the website. What is front-page.php ? How can I set this up ?
– Julien
Mar 25 at 22:17
If you name a php file front-page.php and add some dummy text, see if it pulls into your homepage?
– Jonny
Mar 25 at 22:23
Where do I need to name that php file and put it ? Via FTP ?
– Julien
Mar 26 at 5:26
|
show 4 more comments
Thank you, a page was already selected and it does not load this page... I really do not understand now...
– Julien
Mar 25 at 22:14
Which page is selected? Does it use a set template? You could try using front-page.php, this will be your homepage by default.
– Jonny
Mar 25 at 22:15
Thank you for your fast answer Jonny :) Whatever page I chose, it does not work. I tried with many, that are working otherwise on the website. What is front-page.php ? How can I set this up ?
– Julien
Mar 25 at 22:17
If you name a php file front-page.php and add some dummy text, see if it pulls into your homepage?
– Jonny
Mar 25 at 22:23
Where do I need to name that php file and put it ? Via FTP ?
– Julien
Mar 26 at 5:26
Thank you, a page was already selected and it does not load this page... I really do not understand now...
– Julien
Mar 25 at 22:14
Thank you, a page was already selected and it does not load this page... I really do not understand now...
– Julien
Mar 25 at 22:14
Which page is selected? Does it use a set template? You could try using front-page.php, this will be your homepage by default.
– Jonny
Mar 25 at 22:15
Which page is selected? Does it use a set template? You could try using front-page.php, this will be your homepage by default.
– Jonny
Mar 25 at 22:15
Thank you for your fast answer Jonny :) Whatever page I chose, it does not work. I tried with many, that are working otherwise on the website. What is front-page.php ? How can I set this up ?
– Julien
Mar 25 at 22:17
Thank you for your fast answer Jonny :) Whatever page I chose, it does not work. I tried with many, that are working otherwise on the website. What is front-page.php ? How can I set this up ?
– Julien
Mar 25 at 22:17
If you name a php file front-page.php and add some dummy text, see if it pulls into your homepage?
– Jonny
Mar 25 at 22:23
If you name a php file front-page.php and add some dummy text, see if it pulls into your homepage?
– Jonny
Mar 25 at 22:23
Where do I need to name that php file and put it ? Via FTP ?
– Julien
Mar 26 at 5:26
Where do I need to name that php file and put it ? Via FTP ?
– Julien
Mar 26 at 5:26
|
show 4 more comments
You can insert a redirect rule before default WP front controller rule:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^/?$ presentation [L,R=301]
RewriteRule ^index.php$ - [L]
RewriteCond %REQUEST_FILENAME !-f
RewriteCond %REQUEST_FILENAME !-d
RewriteRule . /index.php [L]
</IfModule>
Regex ^/?$
will match landing page and redirect to /presentation
with 301
status code.
Thank you so much for your answer. This redirection does not work, I still have the same blank page on Home and everything else working :(
– Julien
Mar 25 at 22:14
Yes, unfortunately…
– Julien
Mar 26 at 5:47
Test in Chrome dev tool with caching disabled and check in Networking tab what are 301/302 redirect URLs you get.
– anubhava
Mar 26 at 6:31
Thank you for your answer. I do not get any redirection, how is that even possible... I have two requests, one for favicon and one for afh.asso.fr.
– Julien
Mar 26 at 8:54
That means this htacceas is not being used. WP might be using some proxy plug-in
– anubhava
Mar 27 at 2:45
add a comment |
You can insert a redirect rule before default WP front controller rule:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^/?$ presentation [L,R=301]
RewriteRule ^index.php$ - [L]
RewriteCond %REQUEST_FILENAME !-f
RewriteCond %REQUEST_FILENAME !-d
RewriteRule . /index.php [L]
</IfModule>
Regex ^/?$
will match landing page and redirect to /presentation
with 301
status code.
Thank you so much for your answer. This redirection does not work, I still have the same blank page on Home and everything else working :(
– Julien
Mar 25 at 22:14
Yes, unfortunately…
– Julien
Mar 26 at 5:47
Test in Chrome dev tool with caching disabled and check in Networking tab what are 301/302 redirect URLs you get.
– anubhava
Mar 26 at 6:31
Thank you for your answer. I do not get any redirection, how is that even possible... I have two requests, one for favicon and one for afh.asso.fr.
– Julien
Mar 26 at 8:54
That means this htacceas is not being used. WP might be using some proxy plug-in
– anubhava
Mar 27 at 2:45
add a comment |
You can insert a redirect rule before default WP front controller rule:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^/?$ presentation [L,R=301]
RewriteRule ^index.php$ - [L]
RewriteCond %REQUEST_FILENAME !-f
RewriteCond %REQUEST_FILENAME !-d
RewriteRule . /index.php [L]
</IfModule>
Regex ^/?$
will match landing page and redirect to /presentation
with 301
status code.
You can insert a redirect rule before default WP front controller rule:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^/?$ presentation [L,R=301]
RewriteRule ^index.php$ - [L]
RewriteCond %REQUEST_FILENAME !-f
RewriteCond %REQUEST_FILENAME !-d
RewriteRule . /index.php [L]
</IfModule>
Regex ^/?$
will match landing page and redirect to /presentation
with 301
status code.
answered Mar 25 at 20:57
anubhavaanubhava
545k48 gold badges346 silver badges421 bronze badges
545k48 gold badges346 silver badges421 bronze badges
Thank you so much for your answer. This redirection does not work, I still have the same blank page on Home and everything else working :(
– Julien
Mar 25 at 22:14
Yes, unfortunately…
– Julien
Mar 26 at 5:47
Test in Chrome dev tool with caching disabled and check in Networking tab what are 301/302 redirect URLs you get.
– anubhava
Mar 26 at 6:31
Thank you for your answer. I do not get any redirection, how is that even possible... I have two requests, one for favicon and one for afh.asso.fr.
– Julien
Mar 26 at 8:54
That means this htacceas is not being used. WP might be using some proxy plug-in
– anubhava
Mar 27 at 2:45
add a comment |
Thank you so much for your answer. This redirection does not work, I still have the same blank page on Home and everything else working :(
– Julien
Mar 25 at 22:14
Yes, unfortunately…
– Julien
Mar 26 at 5:47
Test in Chrome dev tool with caching disabled and check in Networking tab what are 301/302 redirect URLs you get.
– anubhava
Mar 26 at 6:31
Thank you for your answer. I do not get any redirection, how is that even possible... I have two requests, one for favicon and one for afh.asso.fr.
– Julien
Mar 26 at 8:54
That means this htacceas is not being used. WP might be using some proxy plug-in
– anubhava
Mar 27 at 2:45
Thank you so much for your answer. This redirection does not work, I still have the same blank page on Home and everything else working :(
– Julien
Mar 25 at 22:14
Thank you so much for your answer. This redirection does not work, I still have the same blank page on Home and everything else working :(
– Julien
Mar 25 at 22:14
Yes, unfortunately…
– Julien
Mar 26 at 5:47
Yes, unfortunately…
– Julien
Mar 26 at 5:47
Test in Chrome dev tool with caching disabled and check in Networking tab what are 301/302 redirect URLs you get.
– anubhava
Mar 26 at 6:31
Test in Chrome dev tool with caching disabled and check in Networking tab what are 301/302 redirect URLs you get.
– anubhava
Mar 26 at 6:31
Thank you for your answer. I do not get any redirection, how is that even possible... I have two requests, one for favicon and one for afh.asso.fr.
– Julien
Mar 26 at 8:54
Thank you for your answer. I do not get any redirection, how is that even possible... I have two requests, one for favicon and one for afh.asso.fr.
– Julien
Mar 26 at 8:54
That means this htacceas is not being used. WP might be using some proxy plug-in
– anubhava
Mar 27 at 2:45
That means this htacceas is not being used. WP might be using some proxy plug-in
– anubhava
Mar 27 at 2:45
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55342941%2fwordpress-homepage-blank-but-other-working%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Any help, please?
– Julien
Mar 25 at 17:50