• I’m working on a site where the URL was improperly changed and now references both URLs. I’ve copied the site to my local machine (Windows 7) to resolve the issue; updated the database and files and can now change the URL in General/Site address (was grayed out). I removed .htaccess and reset the permalinks, recreating .htaccess. The only remaining issue I have is the Pages (home page is OK – static). The URL is now http:/localhost/sitename, and when I click on a menu item the page URL listed in the browser is http:/localhost/sitename/page but a “Not Found The requested URL /sitename/page/ was not found on this server”. The permalink indicated in the admin section on each page is http;/localhost/sitename/page. The .htaccess file has “RewriteBase /sitename/”. Should the .htaccess file be created with “RewriteBase /localhost/sitename/”? Why doesn’t it? Is this as easy as editing the .htaccess file to reflect “RewriteBase /local/sitename”? I’m also unable to update the .htaccess file. Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • to be able to use anything but ugly permalinks, you will need to edit the http.conf file in the Apache -> Conf folder
    open in a plain text editor
    find the line that looks like this
    #LoadModule rewrite_module modules/mod_rewrite.so
    remove hash
    LoadModule rewrite_module modules/mod_rewrite.so
    save
    regenerate .htaccess

    Thread Starter sudico

    (@sudico)

    Thanks!! That fixed my issue.

    where can i find this .htaccess on my localhost?? and how to reset it??

    .htaccess is in your wordpress directory, if you are using permalinks

    to reset it, you can switch permalinks back to default. Delete .htaccess, and then set permalinks back to custom to regenerate it

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page URL Not Found’ is closed to new replies.