Solved

Old Site Asp.net redirect to Wordpress

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Wondering how you can get your new website ranking on Google Search so that people find you online?  The answer is Search Engine Optimization (SEO). So how do you Start Ranking a New site with SEO?  Below is a starter guide to get your new website S…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

707 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

12 Experts available now in Live!

Get 1:1 Help Now