Search
Syndication
Sponsors

How Do I Build A Redirect From An Asp Site To A Php Site?

My company switched from an asp site to a php site. We want to build redirects so that we don’t lose all of the good product reviews done by bloggers and other sources. Can someone give me the code so I can create these redirects. We were previously using network solutions. Now we are using joomla.
Thank you for any help you can provide.
Ashley

Related posts:

  1. How To Create A Small Social Network Or Dating Site Using Php? I already know basics of PHP, but I think the...
  2. How To Change My Php Site To A Secure Site? I’ve already made a web site using PHP, but now...
  3. How Do I Get My Own Free Php Site? I’m 16 and want to begin making my own layout...
  4. What Is A Site That Can Upload Php Files And Also Can Edit It Like Ripway? Please give me a site. I sign up at ripway...
  5. How Do I Create A Php Page That Will Automatically Redirect & Login To A Password Protected Directory? How do i create a php page that will automatically...

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: , , ,

2 Responses to “How Do I Build A Redirect From An Asp Site To A Php Site?”

  1. shrimpwa Says:

    @Laogeodr… That is a valid solution but you will still lose credibility with Google. If you want to keep some of your page rank, your also need to send a 301 permanent redirect so the search engines will know that the link has changed.
    RewriteEngine On
    RewriteRule (.*).asp $1.php [R=301,L]

  2. Laogeodr Says:

    Are all your URLs the same, except for a .php extension instead of .asp?
    If so, and if your server is running Apache, you can use the RewriteEngine to do this, either in a .htaccess file at the root of your website, or in a section of Apache’s configuration file that points to the root of the website.
    If this ISN’T the case, you’d need to provide more details about how your old and new URLs look.
    This is the code (if it doesn’t work, try replacing $1 with $0). It checks for any URLs ending in .asp and redirects the user to the same URL except with .php. (If you use .aspx or another extension, go ahead and change that.)
    RewriteEngine On
    RewriteRule (.*).asp $1.php [R,L]

Leave a Reply

Translate
Links

Tags