✓ Solved

I need help removing index.php from my site url.

I am still fairly new to Wordpress configurations, so please bear with me. Right now, my site is fully functional, but it has the following permalink in place: (/index.php/%year%/%monthnum%/%day%/%postname%/). Linode is currently hosting my site with an Apache/2.4.38 setup (Debian).

When I try to remove the /index.php/ part of the permalink, I get a 404 error. I believe that I'm supposed to tinker with the .htaccess file, but I'm not sure what the correct lines of code are. Each time I've tried to modify the .htaccess file, my site ends up in infinite redirects and I end up having to reset the changes I made. I've also tried looking around stackexchange and other forums to find the solution, but everyone has different answers.

Could someone help me out with this issue? If you need anything else from me, let me know and I can provide the necessary info.

Thanks!

3 Replies

✓ Best Answer

The site works now with the post-name.

https://genowrite.com/case-study-hi-c-sequencing-kit/

When I said 'restart WP' is misspoke. What I meant to say is that sometimes you check the radio-button on "Permalinks" and it does not take, so you have to click another one and then click "post name" again and it works. And sometimes you actually have to log-out of the admin session and re-log in (which what some people call 'restarting WP' which is wrong!"

Anyway, the site shows the post/page names.

The site is quite slow changing pages, but you are using the "7" theme which is one of those 'all in one' mulitpurpose themes (like Arvada) that are always slow. (And you probably want to take their copyright notice out of your footer …. © 2023 THE SEVEN. ALL RIGHTS RESERVED.)

That said, it is a nice site. You did a good job.

-ANC
https://newmediacreate.com

There are very few reasons to ever mess with the WP .htaccess file.

WP must have index.php.

To change the link you use the WordPress, Settings, Permalink screen.

Sometimes when you change this and save it, you need to quit WP and restart it. I always use 'post name'.

What is the url of the site?

My URL is https://genowrite.com. I'm not sure what you mean by restarting WP, but using 'post-name' as the permalink caused the 404 error. I also tried rebooting the Linode.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct