Solved

Old Site Asp.net redirect to Wordpress

Posted on 2014-09-08
4
595 Views
Last Modified: 2014-09-10
I have an asp.net web site, but now i will change to wordpress. Web hosting is another server also. Google and other search engines as old website links. How can "redirect " if is possible from old links to actual website, for ex. home page.
0
Comment
Question by:rflorencio
  • 2
4 Comments
 
LVL 21

Expert Comment

by:Randy Poole
ID: 40309737
Do you mean redirect non existent pages on the new web server which are currently being pointed to your server from search engines and such?
0
 

Author Comment

by:rflorencio
ID: 40309775
Yes,

For ex. before i have a page in search engines like www.mysite.com/Contact.aspx?id=1  and now in wordpress i have  www.mysite.com/Contact.
0
 
LVL 21

Assisted Solution

by:Randy Poole
Randy Poole earned 100 total points
ID: 40309862
You can use your .htaccess file and do something like:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^/Contact.aspx$ /Contact$1 [R=301,L]

Open in new window


Just add a new rule for each page.
0
 
LVL 58

Accepted Solution

by:
Gary earned 400 total points
ID: 40310228
Don't add a rule for each page, just use

RewriteEngine On
RewriteRule ^(.+)\.aspx$ /$1 [QSA,NC,R=301,L]

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Echo vs ?><?php  html code 4 45
TCPDF Table of Contents - Page Numbers Don't Right Align 2 36
Word Press Enigima 7 37
php refresh button on the browser 2 36
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now