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













0















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!










share|improve this question
























  • Any help, please?

    – Julien
    Mar 25 at 17:50















0















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!










share|improve this question
























  • Any help, please?

    – Julien
    Mar 25 at 17:50













0












0








0








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!










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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










2 Answers
2






active

oldest

votes


















0














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.





share|improve this answer























  • 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


















0














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.






share|improve this answer























  • 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













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
);



);













draft saved

draft discarded


















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









0














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.





share|improve this answer























  • 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















0














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.





share|improve this answer























  • 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













0












0








0







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.





share|improve this answer













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.






share|improve this answer












share|improve this answer



share|improve this answer










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

















  • 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











0














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.






share|improve this answer























  • 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















0














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.






share|improve this answer























  • 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













0












0








0







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.






share|improve this answer













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.







share|improve this answer












share|improve this answer



share|improve this answer










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

















  • 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

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript