• Resolved mwdewitt

    (@mwdewitt)


    I tried to ask this question before, but no one sufficiently answered it. If I am working on a local host, can I not change the permalink in WordPress until I upload it to the internet? Right now, my permalinks look like this:

    http://localhost/?page_id=5

    And if I leave it like that, I can click on whatever I want to and it will work. But if I change the permalink to:

    http://localhost/projects/

    And also change the linking in the HTML to match, it does not work. I get a message saying, “404 Not Found: The requested URL /projects/ was not found on this server.” When it clearly does exist, because I just changed the permalink to that, but all of my links are broken. So, do I have to wait until I upload my site to the internet to change the permalinks?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Try enabling mod_rewrite on your local server.

    Thread Starter mwdewitt

    (@mwdewitt)

    How would I go about doing that? I searched “mod_rewrite localhost” on Google, but I did not find anything explaining on how to actually do it. I did not just want to come out and ask that question. Thank you in advance!

    Try looking in your server’s httpd.conf file

    Thread Starter mwdewitt

    (@mwdewitt)

    I finally found a tutorial that explains what mod_rewrite is and how to use it. I see what you are getting at, but it seems kind of impractical to have to mod_rewrite for every single one of my links. I plan on dealing with hundreds of links, eventually (to blog posts, forums, project pages, et cetera). There has to be a fix within WordPress.

    Moderator cubecolour

    (@numeeja)

    There has to be a fix within WordPress.

    Why?

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

    Thread Starter mwdewitt

    (@mwdewitt)

    I actually just found that link on WordPress. It explains that you need a mod_rewrite module in Apache. I found the httpd.conf file and opened it, but none of it really makes any sense to me. Where do I and how do I add the mod_rewrite module?

    Thread Starter mwdewitt

    (@mwdewitt)

    Problem solved. I went to this website:
    http://roshanbh.com.np/2008/04/check-enable-mod_rewrite-apache.html

    And I figured it out. Boy, I never would have guessed that that was what I was supposed to do. Thanks, guys!

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

The topic ‘WordPress Permalink Problem’ is closed to new replies.