The MU forums have moved to WordPress.org

How to make wordpress pages look like .html? and couple other questions.. (11 posts)

  1. andmed
    Member
    Posted 15 years ago #

    1) I know this is strange, but our local (Russian) search engine prefers .html pages. Is there a way I can make the pages look like simple html (i.e to have .html extensions). Any hints are welcome.

    2) There is also a problem, when I add url of my blog to the search engine. The search engine says that "The server is not accessible or returns code, different from 200". What is it? Does it mean that the code is 302 or something? Is it normal for Wordpress to return this code? No need to say, that the blog works O.K. and is seen in the browser.

    3) When I enter http://www.mydomain.com I am forwarded to mydomain.com. It can also be the reason my web-site is not indexed by the search engine. Can this be solved with editing .htaccess, or, rather, I should think about DNS settings (so far there seem not to be www subdomain..)

    Thanks!

    Andrey

    ps. I use WPMU 2.61

  2. andmed
    Member
    Posted 15 years ago #

    Oh, my God, I forgot to say that WPMU is installed in "subdomain" mode..

  3. VentureMaker
    Member
    Posted 15 years ago #

    1) Editing rewrite rules in .htaccess can do this

    3) http://www.domain.com is set up as alias of domain.com

  4. andrea_r
    Moderator
    Posted 15 years ago #

    !) you can also do it on the permalink settings page.

  5. VentureMaker
    Member
    Posted 15 years ago #

    andrea, how can we do this via permalinks?

  6. andrea_r
    Moderator
    Posted 15 years ago #

  7. VentureMaker
    Member
    Posted 15 years ago #

    Thanks a ton! You are brilliant as usual, andrea :)

  8. andmed
    Member
    Posted 15 years ago #

    Thank you Andrea, for amazingly simple solution of .html !!!

    :-)

    Has anyone ideas about (2) ???

  9. andrea_r
    Moderator
    Posted 15 years ago #

    No idea about number 2. I'd check it against another service and see if it returns a 200 or something else. Could be the search engine.

  10. webmaestro
    Member
    Posted 15 years ago #

    You can find out what they're 'seeing' by typing this in a terminal (/Applications/Utilities/Terminal.app on Mac OS X or Cmd/DOS prompt for Windows):

    1. telnet http://www.npr.org 80
      1. (Windows users turn on localecho by typing Ctrl+] (that's the 'Ctrl' key and the right square bracket)
      2. Type set localecho and press the Enter key
      3. Press the Enter key again on the blank line
    2. Type the following pressing Enter after each line
      1. GET /path/to/file HTTP/1.1
      2. `Host: http://www.npr.org
    3. Press Enter twice after that last line.

    NOTE: Replace http://www.npr.org with your domain. I changed the value from my domain, to http://www.npr.org.

    In my case, I was using it to determine if Redirection left behind a 301 Redirect when redirecting (I used the Category to Tags Converter...), and I saw:

    ~$ telnet http://www.npr.org 80
    Trying 127.0.0.1...
    Connected to http://www.npr.org.
    Escape character is '^]'.
    GET /category/video HTTP/1.1
    Host: http://www.npr.org
    
    HTTP/1.1 301 Moved Permanently
    Date: Tue, 02 Dec 2008 22:11:15 GMT
    Server: Apache
    X-Powered-By: PHP/5.2.5
    Vary: Cookie
    Location: http://www.npr.org/tag/video
    Transfer-Encoding: chunked
    Content-Type: text/html

    As you can see, the old received a 301 'Permanent' redirect, so I'm happy!

  11. andmed
    Member
    Posted 15 years ago #

    Many Thanks, Webmaestro !!
    Very detailed answer.

    When I ask mydomain.com I get 302 ---> http://www.maydomain.com
    When I ask http://www.mydomain.com I get 200

    Will think further whether this 302 can bother this search-engine.... (It should not, of course)

    Andrey

About this Topic