Forum Support

Shape 5
March 28, 2024, 05:57:54 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: url path includes index.php  (Read 19520 times)
artlee
Jr. Member
**
Offline Offline

Posts: 28



« on: 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?
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #1 on: 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.

Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
artlee
Jr. Member
**
Offline Offline

Posts: 28



« Reply #2 on: 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.
Logged
artlee
Jr. Member
**
Offline Offline

Posts: 28



« Reply #3 on: 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.
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #4 on: 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/
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
artlee
Jr. Member
**
Offline Offline

Posts: 28



« Reply #5 on: 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.
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #6 on: 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.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
artlee
Jr. Member
**
Offline Offline

Posts: 28



« Reply #7 on: September 01, 2015, 12:40:40 PM »

Got it, thanks.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.