WordPress.org

Ready to get started?Download WordPress

Forums

Is there a way to optimize my WordPress for S.E's ? (27 posts)

  1. Tee
    Member
    Posted 7 years ago #

    Hi,

    I noticed that the output links are not .html is there a way I can do that, to optimize WordPress for SE's?

    Thanks,
    joey Dee

  2. Chris_K
    Member
    Posted 7 years ago #

    Well, you could do that via Options -> Permalinks.

    I'm willing to be wrong, but saying that you gotta have .html for SEO feels so very "1995"...

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Search engines don't care about your URLs. Really.

  4. geoffe
    Member
    Posted 7 years ago #

  5. Doodlebee
    Member
    Posted 7 years ago #

    I belong to an email list of professional web designers. The list also has members on it who specialize in SEO (some of them I could name, and you would definitely recognize if you're into serious SEO at all - but I don't feel comfortable "name dropping", so I wont!) This is a question that comes up often on the list (about page extensions and SEO - not WordPress!)

    It has been said by the professionals on this list that the extension does not matter. The content of your page is what matters (and your other strategies for your business - just developing a website is *not* going to do it alone...you need all kinds of stuff to get rankings, like good incoming links, fresh content and other goodies - the website itself is only one step in your marketing process). But whether your page extension is PHP or HTML doesn't matter in the least.

    If you switch, however, you will see a dip in your ranking for a short time while the engines adjust themselves (so if your site usually uses .html and you have excellent ranking, swapping suddenly to .php will have a short-term effect) - if you don't mind the short-term dip, then don't worry about it. If you *do* mind it, then use your .htaccess file to show your .php extensions as .html. Again, that's only if your site already has ranking and is established. If it's new, then use whatever you want to. Engines will read it the same.

  6. Tee
    Member
    Posted 7 years ago #

    Ohh deff your right dooblebee...

    What matters is strong relevant content.... of course but having the .html is a plus... so I'l install Geoffe's script he gave me.. and see how it goes... the PERMALINKS dont work for me, everytime I change it to Date & Post and update it i come back and its still on default.. dont know why...

    Joey Dee

  7. Doodlebee
    Member
    Posted 7 years ago #

    well if the .html extension is that important to you, then it's easily remedied in your .htaccess file. Just add:

    AddType application/x-httpd-php .php .html

    and your .php files will be parsed as .html.

    Hope that helps ya.

  8. Tee
    Member
    Posted 7 years ago #

    Uhmm it seemed to work mate... for example look click http://www.pumatalk.com/blog/

    do you see where it says SUPERSTRUCTURE click that and it link breaks??? whyis that??

  9. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    pumatalk: Undo whatever you just did, and read his post again. He said to add it to the .htaccess file, not to your blog itself, wherever you happened to put it.

  10. Tee
    Member
    Posted 7 years ago #

    Yah see I did what he initially said.. but when I clicked on the article "Superstructure"... the link was

    http://pumatalk.com/blog/?p=6

    So i tried to play around with it... what do you fellas suggest?

    Thanks,
    Joey Dee

  11. Tee
    Member
    Posted 7 years ago #

    In my admin the permalinks is set on Default i dont know if I should so something?

  12. Doodlebee
    Member
    Posted 7 years ago #

    First off, add an "s" to that "he" up there, fellas ;)

    Secondly, looks like maybe editing your .htaccess file overwrote what WordPress does to it when it makes the permalinks?

    Puma - can you download the .htaccess file from your server and open it up in Notepad? If so, great - if not, try opening up a new file in Notepad and typing in the following:

    AddType application/x-httpd-php .php .html

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    Then save it as "htaccess.txt". Upload it to your server, and rename it to ".htaccess" - it *should* then do up your permalinks as needed *and* rewrite your .php extensions as .html.

  13. Tee
    Member
    Posted 7 years ago #

    Oooops Doodble sorry for calling you a guy :(

    Okie... So i did exactly what you just suggested, that's all i have in my .htaccess file

    AddType application/x-httpd-php .php .html

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    in my admin the permalinks is set on Default...

    uhmmm so what you think im missing???

  14. Doodlebee
    Member
    Posted 7 years ago #

    ahh...well the "default" is what gives you the "?p=3455" stuff. What you want is to have the thing set to show "pretty" urls - so you want to change from "default" to "Date and Name Based" or "Numeric". (Mine's "Date and Name Based".)

    The thing is, if you change to the pretty URL's, tere is no "php" extension on your pages (no html extension, either), so no need for the add type stuff.

    Guess I went the long way 'round for your answer, didn't I? Sorry 'bout that :)

  15. Tee
    Member
    Posted 7 years ago #

    DooDleBee...

    Thanks for the message.. i dont know why it keeps doing that... i mean i just swithced from default to date and numeric but when i press update it reputs me back to default??? My htaccess stll has the code you gave me...

    What do you think I should do? delete the code from Htaccess???

    Thanks,
    Joey Dee

  16. moshu
    Member
    Posted 7 years ago #

    of course but having the .html is a plus

    The whole thread was about telling you: it is not a plus.

  17. Tee
    Member
    Posted 7 years ago #

    ahhh I gotcha Moshu,

    I'll just delete it... sorry I was a little slow catching on :(

    It just woud of looked nicer but its all good...

    Thanks Moshu & DooD and everyone else - Hope I wasn't a pain in the a$$ :)~

    Joey Dee

  18. ectorg
    Member
    Posted 7 years ago #

    Hey doodlebee, is there any difference if you do your permalinks like: mydomain.com/category/whatever-slug-here

    or replace category with a keyword like:

    domain.com/good-keyword/whatever-slug-here

    ?

    I'm just curious if it makes any difference. The info you posted above was quite helpful and very direct.

    Juli

  19. Tee
    Member
    Posted 7 years ago #

    Ectorg,

    I dont think it makes a different to have a keyword in your address... it would make a different and optimize your site if you have the keyword links many times...

    ex: keyword = JOEY

    Hey to find out more about JOEY [<----link] click the link

    I hope that made sense...

    Joey Dee :)

  20. ectorg
    Member
    Posted 7 years ago #

    Hey Joey Dee, that does make sense. Thanks!

    Now I'll just leave "category" there and stop putzing around with that.

    Juli

  21. geoffe
    Member
    Posted 7 years ago #

    doodlebee, AddType application/x-httpd-php .php .html is only good for telling Apache to treat files with the .html extension as PHP files (as well as .php). Some people will also not have the power to do this on their server and only applies if you have files with the html extension that you need parsed by PHP. This won't be relevant to anything in wordpress, unless you want to rename files like wp-login.php to welcome.html (and then you have to edit all references to wp-login.php but that's another discussion).

    Changing category to a more useful keyword should have an effect but adding html should not please any search bot. Once again, the instructions are here: codex.wordpress.org/Using_Permalinks#Tips_and_Tricks

    All you do is add .html to your Permalink structure. You could add .cfm or .ass if you liked, the power is in your hands.

  22. designde
    Member
    Posted 7 years ago #

    The most obvious thing to do for SEO purposes with a blog is to make sure that the title of the post comes before the blog identification and that the post title accurately reflects the blog post content.

    If your post title comes after the blog name, relevancy will not be as high. Look at your <title> element in your header file.

    In my opinion, this is more important than any other SEO factor right now.

  23. Doodlebee
    Member
    Posted 7 years ago #

    Good point, geoffe - you are right on that.

    And ectorg - if you want some good readin' in SEO optimization and tips, visit highrankings.com (Jill Whalen's site - one of *the* experst out there). Excellent site for this type of information.

  24. pizdin_dim
    Member
    Posted 7 years ago #

    "In my opinion, this is more important than any other SEO factor right now."

    Very wise observation, designde. You've summarised the most important aspects nicely.

    "If your post title comes after the blog name, relevancy will not be as high."

    Unfortunately, most WP theme creators seem to do exactly the opposite to this and instead design their theme to say "blog name » post title" instead.

  25. Tee
    Member
    Posted 7 years ago #

    quick question here... in the permalinks option in my admin... i choosen the second tab "Date and name based" and press update and there is a a message "You should update your .htaccess now."

    Now im not sure how I need to update my .htaccess??? in order for it to work? what codes do I put in there?

    /%year%/%monthnum%/%day%/%postname%.html <---????

    Thanks,
    Joey

  26. Tee
    Member
    Posted 7 years ago #

    Folks,

    please if you can just let me know what to do here i'd appreciate it.

    Thanks,
    Joey

  27. moshu
    Member
    Posted 7 years ago #

    1. Get rid of that .html
    2. The code you posted goes in to the field on the Options > Permalinks admin subpanel
    3. Make an empty file called .htaccess > upload it into the WP directory on your server, chmod 666, repeat the Update options for the Permalinks settings.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.