• 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

Viewing 15 replies - 1 through 15 (of 26 total)
  • 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”…

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

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

    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.

    Thread Starter Tee

    (@pumatalk)

    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

    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.

    Thread Starter Tee

    (@pumatalk)

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

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

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    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.

    Thread Starter Tee

    (@pumatalk)

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

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

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

    Thanks,
    Joey Dee

    Thread Starter Tee

    (@pumatalk)

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

    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.

    Thread Starter Tee

    (@pumatalk)

    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???

    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 ??

    Thread Starter Tee

    (@pumatalk)

    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

    of course but having the .html is a plus

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

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘Is there a way to optimize my WordPress for S.E’s ?’ is closed to new replies.