• Yakusoya

    (@yakusoya)


    I have my blog working fine located at:

    https://www.nana-nana.net/threelights/evermore/

    And when people access the following URL, they should redirect to the URL above:

    https://star-lights.net/evermore/

    However, instead it redirects to: https://www.nana-nana.net/evermore/

    I think it’s something inside WordPress that’s causing the problem. I have tried deleting and starting a new database. It prompts me to enter a blog title etc. to create a new blog and up to the login screen, S-L.net redirects fine. However it’s AFTER I login and create the blog that it redirects back to the wrong address. The blog at the main address (N-N.net/threelights/evermore) is always working, I have not gotten any errors at all. Vdeck does not detect any database errors either.

    I’d really appreciate if anyone could give a solution to this since I’ve tampered and deleted the database countless times already. Thanks.

Viewing 12 replies - 1 through 12 (of 12 total)
  • thelazygeisha

    (@thelazygeisha)

    I’d really appreciate if anyone could give a solution to this since I’ve tampered and deleted the database countless times already.

    Well good lord that’ll never do…

    Redirects are handled by .htaccess

    https://www.javascriptkit.com/howto/htaccess7.shtml

    Thread Starter Yakusoya

    (@yakusoya)

    But the redirect works when I don’t have my blog activated. So that means it’s something inside WordPress?

    How exactly you do the redirection?

    Thread Starter Yakusoya

    (@yakusoya)

    Since the domains are my friend’s, I’ll have to ask her first. Let me get back to you on that.

    thelazygeisha

    (@thelazygeisha)

    I’ve tampered and deleted the database countless times already.

    But the redirect works when I don’t have my blog activated. So that means it’s something inside WordPress?

    Yakusoya: You can chew on your database nine ways to Sunday and all its going to accomplish is wasting a lot of your time and increasing the odds of you breaking something important.

    This has nothing to do with WordPress.

    url redirects are handled with .htaccess files, or nasty scripts that send traffic to bad places in the world, but I don’t think we’re ready for that conversation yet. Please read the content at the link I provided, or speak to your host about helping you set up a url redirect.

    – nina

    Thread Starter Yakusoya

    (@yakusoya)

    Okay, I asked her and she does not remember what she did. But she said it was not a redirect. It was something that was done so that the following could happen.

    https://nana-nana.net/threelights/kinou

    could be accessed and seem to be located at

    https://star-lights.net/kinou/

    All the links at S-L.net address above seem to be located at S-L.net but they’re really hosted on N-N.net. Anyone know what process this is called?

    But that’s besides the point because this process is not working with WordPress but it is working with other scripts on the server. My friend also said that her Coppermine gallery had a similar problem and she had to go into the Includes folder and change a PHP value in some file to “localhost/threelights”. I tried that for my wp-config.php but then it said it could not connect to the database.

    Can she try to remember or ask her again what she meant by “it was not a redirect”?

    Thread Starter Yakusoya

    (@yakusoya)

    Edit:
    The redirect thing is just having the S-L.net domain point to N-N.net/threelights/ folder. It works for all the other sites located on the server just like with the address one post above. Again, it is seriously something with WordPress. This time, I deleted everything and reinstalled WordPress via Vdeck’s Applications instead of manually. It was version 2.0.2 and it shows up at S-L.net.

    Then I upgraded it back to 2.3.3 and after that, the S-L.net address does not work.

    thelazygeisha

    (@thelazygeisha)

    Again, it is seriously something with WordPress.

    Again, This is seriously nothing to do with WordPress.

    From everything you’ve written here; you seem to want to host WordPress on one domain and server, but have a domain hosted on another server someplace else point back to the server and domain which contains your WordPress installation.

    This is what we call a redirect.

    You accomplish this by modifying the .htaccess file of the domain you wish to point someplace else.

    Again, if you read the material in the link I left you, you will find the following:

    htaccess uses redirect to look for any request for a specific page (or a non-specific location, though this can cause infinite loops) and if it finds that request, it forwards it to a new page you have specified

    Meaning that if I enter the url https://somedomain.com but you want it to point to https://wordpress_here.com, that is a redirect.

    Again, from the link I left you:

    Note that there are 3 parts to that, which should all be on one line : the Redirect command, the location of the file/directory you want redirected relative to the root of your site (/olddirectory/oldfile.html = yoursite.com/olddirectory/oldfile.html) and the full URL of the location you want that request sent to. Each of the 3 is separated by a single space, but all on one line. You can also redirect an entire directory by simple using Redirect /olddirectory https://yoursite.com/newdirectory/

    Using this method, you can redirect any number of pages no matter what you do to your directory structure. It is the fastest method that is a global affect.

    You need to have access to the .htaccess file of the domain you want to redirect, and you need to modify that .htaccess file in the manner described above.

    For the life of me I cannot understand why you keep installing and uninstalling WordPress and are expecting something different to happen, especially when you’ve been offered a pretty standard (and correct) answer to solve your problem, and more importantly when this has nothing to do with WordPress.

    And for the last time, this has nothing to do with WordPress.

    Thread Starter Yakusoya

    (@yakusoya)

    How can it have nothing to do with WordPress when the redirect works for every single site and application on the same server except WordPress?

    But thanks, I will show this to her.

    moshu

    (@moshu)

    @yakusoya,
    Actually, WP doesn’t work well with any “redirect tricks”. Period.
    Set up WP where you want to see it. Less headache… Trust me, you are not the first who tries to outsmart WP. Never really works correctly.

    @lazygeisha,
    some reading never hurst:
    https://markjaquith.wordpress.com/2007/09/25/wordpress-23-canonical-urls/
    (WP has its internal rules!)

    thelazygeisha

    (@thelazygeisha)

    moshu: Point well taken. ??

    But from what the OP had written, the goal seemed to be wanting to redirect one domain to a working WP installation elsewhere, so this issue wouldn’t be about trying to get around WP’s own rules and .htaccess structure with respect to permalinks, which is never pretty.

    Unless I completely read it wrong, which isn’t outside the realm of possibility!

    – nina

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Cannot redirect to working blog’ is closed to new replies.