Forums

Rename index.php and include in header links (Pages in WordPress Admin) (7 posts)

  1. thewpfan
    Member
    Posted 1 year ago #

    I am working on the site http://www.giantmango.com/news.php.

    I renamed my index.php to news.php and tried linking the header links (permalink of Pages in WordPress Admin) "News" to news.php, but it is not working. When this is completed, I would like index.php to point to the header link "Home" too.

    I have renamed index.php to news.php and updated my .htaccess file to
    RewriteRule ^news\.php$ - [L]
    RewriteRule . /news.php [L]

    but I cannot update the header links (permalink of Pages in WordPress Admin) to news.php. Can someone please tell me if I am doing this correctly or if there is a better way without using plugins?

    Thank you so much in advance.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Rename news.php back to index.php and undoing the changes you made to the .htaccess file first. Then try explaining what it is that you're trying to achieve.

  3. thewpfan
    Member
    Posted 1 year ago #

    I wanted the blog to be news.php and I wanted the home link on the header links to be the main page of the website. Is that possible?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Your home page seems to be currently displaying your latest posts. Is that what you want? If "yes", do you simply want to display posts from your News category in a page called Blog?

  5. thewpfan
    Member
    Posted 1 year ago #

    My http://www.giantmango.com/home is a page in "Pages" in WordPress Admin.

    http://www.giantmango.com/index.php, which is the blog and is not visible because I have a http://www.giantmango.com/index.html temporary file.

    I would like the blog (index.php) to be the "News" link in http://www.giantmango.com/home.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Create & publish a page called News. Set this as your main posts page in Settings -> Reading.

  7. thewpfan
    Member
    Posted 1 year ago #

    esmi,

    Thank you so much for your help.

    I did as you recommended, but the "News" link in the header pointed to a blank page and not the index.php (main posts page). So I updated the permalink for the "New" page to http://www.giantmango.com/news/index_php (it won`t take index.php) and got it to work. I have a feeling that it cannot find a file so it just directs it to http://www.giantmango.com/news/index.php.

    How would I be able to point
    http://www.giantmango.com/index.php or http://www.giantmango.com/index.html to point to http://www.giantmango.com/news/home?

Topic Closed

This topic has been closed to new replies.

About this Topic