?
Solved

Old Site Asp.net redirect to Wordpress

Posted on 2014-09-08
4
Medium Priority
?
655 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 400 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 1600 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Online promotion is consistently becoming more important for all types of businesses. From Facebook ads to search engines to YouTube videos, there are all sorts of channels that can effectively be used to promote a business or product. But how shoul…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
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…
Suggested Courses

771 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