Removing index.php from my Wordpress URL strings

AussieDave

24 years & still going!
Joined
Nov 28, 2013
Messages
4,991
Reaction score
3,532
WP has a page which explains it all:
https://codex.wordpress.org/Using_Permalinks

For what you require, you need to do the following:
  1. Access your WP Admin Area;
  2. Then go to Settings >> Permalinks;
  3. Click the Custom Structure.
You have a couple of options... Can either include the "Category Base" or just your "Post Name".

I've always used my Category Base, followed by Post Name. I also use a trailing (/) forwardslash.

To achieve what your asking, you'd add this to your "Custom Structure", /%category%/%postname%

You must have a .htaccess file on the root of your site. WP will try to automatically add the Permalink structure to that file. If it can't, it will issue a notice in your Settings >> Permalinks area and you'll have to add it manually to the .htaccess file. You will receive the code within that area to add to you .htaccess file.

NB - Don't forget to do 301 redirects from your old pages, to all your new "Pretty URL's" ;)
 
Last edited:

RyanWeb

Affiliate Guard Dog Member
Joined
Apr 9, 2015
Messages
973
Reaction score
412
Hi there,

Can someone let me know how I can removed 'index.php' from all of my Wordpress URLs?

For example, my current URLs look like the following:

www.mydomain.com/index.php/casino-reviews

What I want to get to is:

www.mydomain.com/casino-reviews

Thanks a lot for your help!

Did you get your site working? If you need any help let us know.. I think most of us have installed several WP sites and can donate a few minuets to get you running.. I know I can, PM if you need.

Otherwise, hope you figured it out.
 
Top