WordPress.org

Ready to get started?Download WordPress

Forums

mod_rewrite and "friendly urls" (7 posts)

  1. powerlounger
    Member
    Posted 8 years ago #

    I'm pretty sure this has been mentioned many times, and is probably one of the most frequently asked questions.

    Can somebody give me a nutshell explanation of what I need to do to enable the links to my entries to pull the slug? I'm not even sure what this is called. Permalinks?

    For instance:

    I would like

    http://mysite.com/blog/?p=367

    to be seen by

    http://mysite.com/blog/entry-name-in-post-slug

    etc.

    Also, for my understanding, is it indeed the Post slug attribute that is used for such a link? And with it enabled, does that mean that the default link would also work too (i.e. ?p=367)

    I'm hosting on GoDaddy, and they say mod_rewrite is enabled.

    However, I'm trying to hit my entries using the Post slug @ the end of the url, and it's not working. I'm obviously overlooking a WP setting, or GoDaddy's lying about the mod_rewrite.

    Thanks in advance.

  2. James
    Happiness Engineer
    Posted 8 years ago #

    You need to activate permalinks in Options/Permalinks.

    http://codex.wordpress.org/Using_Permalinks

  3. powerlounger
    Member
    Posted 8 years ago #

    Thanks macmanx,

    I did that, using the suggested structure:

    /%year%/%monthnum%/Úy%/%postname%/

    While my entry headings were changed accordingly (as shown in the browser's status bar), the link wasn't found when I clicked it. Went to my not found page.

    Any ideas? Is there another setting, or a special structure I need to use? Or does this look more like a mod_rewrite problem?

    Thx.

  4. powerlounger
    Member
    Posted 8 years ago #

    Hey macmanx, or anyone,

    Do I need to modify the .htaccess file in order for the Permalinks to work? If so, can you tell me what the drill is? Can I do it from Manage -> Files, and make the change there?

    Thanks in advance!

  5. James
    Happiness Engineer
    Posted 8 years ago #

    The .htaccess rewrite rules should have been automatically generated and added to the .htaccess file. If they were not, see this: http://codex.wordpress.org/Using_Permalinks#Fixing_.28.htaccess.29_Generation_Issues

  6. tcort
    Member
    Posted 8 years ago #

    If you are still having problems with permalinks, then check out my brief tutorial on getting Search Engine Friendly URLs on GoDaddy.

  7. PetLvr
    Member
    Posted 8 years ago #

    It sounds good. But it is not as easy as that.. After 2-1/2 days now of aggrevatation, (see http://wordpress.org/support/topic/55246?replies=8 ) I have finally figured out how to get my wordpress 2.0 blog to WORK using the default ../?p=XXX permalink. I am desperately hoping to end up with
    /%category%/%postname%/

    Even the http://codex.wordpress.org uses categories .. it must be possible. Obviously there are more and more comments and posts about permalinks and their problems. I am afraid to post anything because of my BROKEN blog.

    What's going to happen if I decide to downgrade or someone does help me and fixes the permalink problem - and I continue posting - will that make it worse?

Topic Closed

This topic has been closed to new replies.

About this Topic