We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,277 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Redirect Old aspx pages to new non-aspx pages

Rebuilt an existing site:

Old site used aspx pages, for example:
http://www.americascarshow.com/Detail.aspx?dct=11&mid=1656 (broken)

New site is in Joomla; new link is:
http://americascarshow.com/gadgetcentral

I tried a 301 redirect in .htaccess file but cld not get it to work.

I need a solution to redirect links to new pages and/or at least get them to redirect to the site's homepage.

Thanks in advance for any help!

2
Contributors
5
Replies
2 Hours
Discussion Span
3 Years Ago
Last Updated
6
Views
jhellein
Newbie Poster
3 posts since May 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

.htaccess on a windows server? You running Apache or IIS? If IIS, .htaccess won't work - well not without a lot of messing about. IIS should have its own way of providing a 301, but can't help with that as I know v. little about IIS.

diafol
Keep Smiling
Moderator
10,662 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,513
Skill Endorsements: 57

No. The new server is Apache. The old server was IIS. That is part of the problem.

jhellein
Newbie Poster
3 posts since May 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Yeah, that's what I was referring to - the old server. How about this:

http://www.mcanerin.com/en/articles/301-redirect-iis.asp

diafol
Keep Smiling
Moderator
10,662 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,513
Skill Endorsements: 57

My apologies for not explaining the situation more fully.

The old server (IIS) is no longer. But the aspx links that it used still "live" in Google and I wld like to redirect those aspx links to the new (Apache) server site.

I have had limited success using a 301 redirect in .htaccess; for example:

Redirect 301 /Home.aspx http://www.americascarshow.com/

Works fine. But the example that I opened the post with:

Redirect 301 /Detail.aspx?dct=11&mid=1656 http://www.americascarshow.com/

Does not work nor does any link that has a "?" after the aspx.

So I need a solution to redirect broken links that use the old aspx? nomenclature to the new pages at the site.

jhellein
Newbie Poster
3 posts since May 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Ah, I see, you need a regex (wo)man. I'm a complete numpty at regex - anybody else out there?

diafol
Keep Smiling
Moderator
10,662 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,513
Skill Endorsements: 57

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0693 seconds using 2.66MB