my about page is at http://blog2.mindreality.com/about/
How do I force it to be about.html ? It doesn't seem to follow the usual permalink settings like the other posts do.
my about page is at http://blog2.mindreality.com/about/
How do I force it to be about.html ? It doesn't seem to follow the usual permalink settings like the other posts do.
Go to the Options > Permalinks area located in your Admin CP, followed by choosing the following as your Custom Permalink Structure:
/%postname%.html
I told you, it doesn't follow the usual permalink settings.
I want to know how to change the permalinks that are created by wordpress. The permalink settings only seem to affect the post slugs.
Perhaps it's got something to do with the blix theme I'm using?
No, it's because the "about" is a page, not a post.
And you can't force it to have an .html extention, because it's a database driven page - with dynamic content. It's technically a .php file that's pulling in your content for "about" onto that specific page.
Codex-Using Permalinks
Might help, though I've never tried it personally
EDIT Ah, didn't see previous sugestion.
Theme shouldn't effect permalink structure
Though, have you tried resetting permalinks after the About page was created?
This has nothing really to do with permalinks.
The OP wants to add ".html" to the end of the pages, and didn't understand that wordpress doesn't really work in ".html"
Do you have visitors trying to go to
blog2.mindreality.com/about.html
? Perhaps because they have bookmarked or indexed this address from a pre-WordPress version of your website. Here's a possible work-around:
Then you can use .htaccess to set up a Redirect so that anyone typing blog2.mindreality.com/about.html
is redirected automatically to blog2.mindreality.com/about/
I can't explain how to write the htaccess rules for this, but you can find out how to do it by-hand and put your custom rules in the htaccess file OUTSIDE the part that WordPress edits.
ladydeluna, I know WP doesn't use html, and I'm guessing the OP knows this too. IF you looked at the link I provided, it's to a section of the Codex specifically meant to deal with adding the .html suffix to the permalink.
IF you had looked at the OP's site, you'll see that they do indeed have that set up for the default post. The page, /about, however, doesn't accept that rewrite rule.
miklb...
Guessing won't get you anywhere.
And I DID look at the link. It's about adding it to the permalinks for POSTS. NOT PAGES.
"About" is a PAGE.
See my first comment - "No, it's because the "about" is a page, not a post."
So um.
IF you had read that first comment of mine, and IF you had read that the OP was wanting to do this to a page, and not a post, then you'd see that your link regarding the changing of permalinks was not pertinent to this particular question. Especially because prior to your listing that link, the OP stated that they were already doing it, and that it worked on posts but not pages.
More importantly would be asking the question: why??
If it's to redirect an old link, add an htaccess rewrite rule to push to the new permalink.
If it's because you think adding '.html' will trick search engines into better indexing the page... well... I can't imagine a case where a modern search engine cares about the actual link (aside from MAYBE keywords within the link text) construction ending in .html, .php, or / or anything else.
-d
This topic has been closed to new replies.