WordPress.org

Ready to get started?Download WordPress

Forums

.htaccess problem (4 posts)

  1. ivorybishop
    Member
    Posted 7 years ago #

    Hi all. I recently moved from Drupal to WordPress for my main site and now I have a problem I cannot seem to solve. My site was under Drupal which had a nasty habit of making links like this http://www.site.com/?=somenode.

    After lots of copying these links and posting them arounf the net, I now have an issue where I cannot seem to figure out how to redirect them to the new site's node.

    I am trying to redirect http://www.site.com/?=somenode to subdomain.site.com or to http://www.site.com/someothernode. For clarity, the old node is now an entirely new site on a subdomain of the old domain.

    Any ideas out there? I have tried dozens of things in .htacces to make this happen without any luck. Redirects and rewrite for other pages are working fine for the http://www.site.com and for the subdomain.site.com. It seems to be just the .com/?=somenode part that is causing an issue.

    Thanks!

  2. SeanEtCetera
    Member
    Posted 7 years ago #

    I'm having a similar issue. Any luck so far?

  3. LostInNetwork
    Member
    Posted 7 years ago #

    Have you tried .htaccess based rewrite rules (and Apache mod_rewrite)?

    You would probably need to map each and every page to a new address. It might be an awfull lot of work... Don't ask me how. I have not used rewrite rules that much. Can't help. The web is full of documentation.

  4. SeanEtCetera
    Member
    Posted 7 years ago #

    The problem I'm facing is the if I put the following

    RewriteRule ^?q=node/95$ http://www.example.com/some_url/

    It doesn't work. I've also tried numerous variations. It almost seems like the redirecting to index.php that wordpress does is causing an issue. When I use the live header extension for Firefox, access to ?q=node/95 is redirected to ?q=node/95.

Topic Closed

This topic has been closed to new replies.

About this Topic