Shape 5

General Category => Wordpress Talk => : artlee August 31, 2015, 04:33:15 PM



: url path includes index.php
: artlee August 31, 2015, 04:33:15 PM
I'm new to WordPress and am building a site on a temporary server. But, I notice the URLs for pages look something like this:
/index.php/general-services/ . Is there a way for pages just to show as general-services? Or, general-services.html?


: Re: url path includes index.php
: Tristan Rineer September 01, 2015, 06:23:28 AM
Where are you seeing URLs like that?  WP doesn't normally form URLs that way.  You may want to check your permalinks settings (Settings->Permalinks in the admin) to see what your current configuration is.



: Re: url path includes index.php
: artlee September 01, 2015, 07:42:01 AM
Yes. The Permalinks setting was set to custom and formatted the way I posted. I changed to post name, which was set up without the index.php in the url. Thanks, again.


: Re: url path includes index.php
: artlee September 01, 2015, 07:50:52 AM
I can't seem to change the permalink to show .html after the postname. This web site will replace an old one and I always like new page names to match old ones , which in this case end in .html.


: Re: url path includes index.php
: Tristan Rineer September 01, 2015, 08:08:26 AM
From a little bit of poking around on Google, it appears that adding the .html to your permalinks settings will only work for posts, not for pages.  But there is a (very) old plugin that may still work to add it to pages as well: https://wordpress.org/plugins/html-on-pages/


: Re: url path includes index.php
: artlee September 01, 2015, 11:12:18 AM
From a little bit of poking around on Google, it appears that adding the .html to your permalinks settings will only work for posts, not for pages.  But there is a (very) old plugin that may still work to add it to pages as well: https://wordpress.org/plugins/html-on-pages/
Thanks. I might be able to achieve same via htaccess.  I'll check out the plugin.


: Re: url path includes index.php
: Tristan Rineer September 01, 2015, 11:27:28 AM
If you look at the code of the plugin ("svn" link under the "developers" tab), you can see that it's a very small amount of code.  You could probably just copy/paste it into the theme's functions.php if you don't want it running as a standalone plugin.


: Re: url path includes index.php
: artlee September 01, 2015, 12:40:40 PM
Got it, thanks.