• Resolved TerenceK

    (@terencek)


    Hi,
    I’m not really sure that this is an installation question but I wasn’t sure where to post it otherwise.
    My problem is in the creation of a localhost dev site.
    The home page has the correct url for example
    localhost/~terry//mysitename
    but any new pages I add have the urls changed to
    localhost/~terry/mysitename/pagetwo Note the double slash is changed to a single slash.
    and this results in an ‘oops’.
    permalinks are set to postname.

    Editing the browser url to make it // instead doesn’t work as it immediately reverts to a single slash.
    Trying to follow a how to and editing functions.php gives me an illegal function error.

    • This topic was modified 7 years, 3 months ago by Steven Stern (sterndata). Reason: moved from "installation" to "localhost installs"
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello Terence,

    Why does the URL have two slashes in it to begin with? By default it should be one..

    Thread Starter TerenceK

    (@terencek)

    There is no http:// in the localhost link.
    I thought this was because the apache server is running from localhost/~terry// and serving the localhost site so the double slash is there.
    I didn’t put it there, I have only entered the site name and wordpress has done the rest and created the urls. The homepage, however, works but not subsequent pages when it drops the double slash.

    Thread Starter TerenceK

    (@terencek)

    Update
    Settings/Permalinks set to plain works.
    Changing the settings to ‘Post name’ caused a 404.
    Turned out to be due to rewrite not being enabled for pretty links. A somewhat tortuous route to get there and figure it out but did eventually.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Localhost links getting changed from …//… to …/…’ is closed to new replies.