Support » Fixing WordPress » [.htaccess redirect] from older website to new

  • Resolved Lucian Florian



    I try to launch a section built in wordpress and I try to redirect the link from older website to this one.

    The older website is built in a very advanced way so I don’t have access over the menu links.

    I tried with .htaccess:

    Redirect 301 /index.php?sec=v

    but it does not work. I checked to see if there is a cache system but is not. There is no older .htaccess either.

    The index.php is in root and apparently there is a folder Data where there is a v.php which is included in index. Hope this helps as well.

    Anybody has experience with redirecting dynamic php links?

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Have a check with this code for the htaccess redirect to new site:

    RewriteEngine on
    RewriteRule (.*)$1 [R=301,L]


    Shane G.

    Hi Shane, thanks for help.

    That one works. It redirects the entire website to my section.

    I can’t figure out why it doesn’t want for that specific links.
    And I was supposed to launch today 🙁

    The server does not accept .htaccess file so I had to do that in index.

    if($_GET['sec']=="v") {
    header ('HTTP/1.1 301 Moved Permanently');
    header ('Location:');
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[.htaccess redirect] from older website to new’ is closed to new replies.