301 redirect help please- not sure what directory was?

by lotre
4 replies
Hi

Ive just moved from a Joomla site to a wordpress one, and through cpanel im trying to add some redirects.

On cpanel it says domain/directory/redirect url so ive tried :

domain/anxiety/new url but no matter which way i try it i get a 404 error. Now my old site is gone how do i know what the old directory was named? ive tried it with.html without .html all roads but obviously im missing something.

I thought you just redirected the old URL to the new one but that doesnt work either.

Any advice please ?

thanks
#301 #directory #redirect
  • Profile picture of the author PHIMind
    Are you trying to redirect and entire URL or just a specific page/directory?
    {{ DiscussionBoard.errors[3347705].message }}
    • Profile picture of the author lotre
      Originally Posted by PHIMind View Post

      Are you trying to redirect and entire URL or just a specific page/directory?
      Hi Guys
      Ive got all the old URL's, i copied them before i swapped sites. Im trying to redirect old URL's to new ones, the only difference is the old ones were .html- for example:

      ../anxiety-2.html to .../hypnosis-for-anxiety

      this doesnt work in cpanel, cpanel asks for a directory not URL to URL?

      Evanm - the main domain is still the same so doing what you said doesnt count does it? and would i have to do that by ftp?

      I just cant see what im doing wrong??

      thanks
      Signature

      I think...therefore I am

      {{ DiscussionBoard.errors[3348980].message }}
  • Profile picture of the author KirkMcD
    Originally Posted by lotre View Post

    Now my old site is gone how do i know what the old directory was named?
    Check if Google or another SE still has the old pages indexed. Write down the URLs.
    If the site was more than six months old, check web.archive.org.
    {{ DiscussionBoard.errors[3348522].message }}
  • Profile picture of the author Evan-M
    edit your old joomla index.php file and add the following


    <?php
    // Permanent redirection
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: http://www.yoursite.com/");
    exit();
    ?>
    Signature

    Evan-M

    Easily The Worlds Best Wordpress Popup plugin

    Visit Website Design Firm For All Your Wordpress Coding Needs

    {{ DiscussionBoard.errors[3348803].message }}

Trending Topics