When I type my site URL, it shows infinity free homepage saying that your site is ready. but when I use wp at the end of url It works fine. to solve this problem I deleted Index2.php from file manager as it was told in one of the topic. now it shows directory listing. but still when I use wp it works fine. I am totally messed and confused please help. my site is http://k2entercom.ga
I see the problem. When you installed WordPress, you installed it in the wp folder. If you want it at the root of your site, you’ll need to reinstall it there.
use this one php code if you not want to reinstall. that probably helps you
<?php
//jumping to wp folder
header(‘Location: http://k2entercom.ga/wp/’);
?>
save it index.php (not in wp folder)
that will jump to the folder automatically
@anon19508339, I have validated your code and it’s missing a semicolon. Let me adjust the redirect code for you and for @k2entercom to enter:
<?php
// Jump to WP folder
header("Location: http://k2entercom.ga/wp/");
die();
?>
I have also added the code formatting tag on every line, so the code is easy to read.
actually if there be a single code row won’t need semicolon, writing semicolon is optional these where unless there be more than one row.
I even added a die() function, so it does terminate the PHP session in use, so I added semicolons in the code and replaced the apexes with quotation marks to make the code work.
@k2entercom, you need to enter my code if you don’t want to have errors while seeing the page redirect.
Thank You very much Sir. This works great. you really solved my problem. You are genius
Thanks You really solved my problem. What ever you said, I did the same and now all works fine. Thank you again. you are a great coder.
you’re welcome
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.