• Hi

    Someone mentioned to me activing mod-rewrite to improve my seo for my blog. My question is how to i do this? Is this something i activate via wp-admin? Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • mod_rewrite is an apache module — not a WP thingy. You’d need to visit with your host about having it enabled.

    Hello

    Yes doing this will change your URL’s from:

    http://your-blog.com/?p=3

    to:

    http://your-blog.com/date/category/post-title/

    Or whatever structure you use.

    More info
    http://codex.ww.wp.xz.cn/Using_Permalinks

    Hope it helps.

    mod_rewrite is an apache module — not a WP thingy. You’d need to visit with your host about having it enabled.

    Oh, if you mean installing the module, then listen to him. :blush:

    Thread Starter 1danielj

    (@1danielj)

    Thanks for the help, i kind of figure it out. I activated it and its showing links like this:
    http://www.floydlandis.info/2006/08/23/FloydLandisHiresQuickPublicRelationsGroup/

    What would be the rewrite rule for more search engine friendly url, maybe like this:

    http://www.floydlandis.info/2006/08/23/Floyd-Landis-Hires-Quick-Public-Relations-Group/

    I think by adding the hyphens would help or looking for any suggestions. Thanks

    By default, WP takes your post’s title, swaps spaces for hyphens and uses that as the slug (like your second example).

    You can see the slug when editing/creating a post – it’s in the right column. Are you manually entering them? If so, why not let WP do it with hyphens for you? Automagically even.

    Thread Starter 1danielj

    (@1danielj)

    Yes, i would like to use my second example. All of the blogs were auto added, not done manually. How do i compensate hyphens for spaces as my 2nd example? How is done automatically? Thanks in advance.

    When you say “all of the blogs were auto added”, I assume you mean the blog posts. Did you import them from another blogging system?

    Unless someone has modified your core code, when you write a new post in WP, it will do the hyphens for you. How? I have no clue. It “just happens”…

    Thread Starter 1danielj

    (@1danielj)

    Yes, all new posts i manually add compensate the space with a hyphen, i just tested it.
    All of the existing blog posts on the site now were imported using an rss feed script. How can i go back and edit the titles to include the hyphen? Can this be done? Thanks

    Aside from the horribly manual process of going to each Post (Manage -> Posts) and updating the slug, I dunno how else you could do it.

    Maybe someone clever could right a little php script to go through ’em and, where the slug is “camel-cased” add dashes, I suppose… Doing it via SQL would be beyond tedious as well.

    Sorry, no bright ideas. 🙁

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Mod-rewrite how to activate?’ is closed to new replies.