Solved

Old Site Asp.net redirect to Wordpress

Posted on 2014-09-08
4
615 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Multi line FPDF footer: 3 28
php subtract from date 2 29
How do use '  ' within this code? 4 29
Update Set Column Query Not Working as Expected 6 9
This article discusses four methods for overlaying images in a container on a web page
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
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…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

726 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