Redirect an ASPX page
5 posts
• Page 1 of 1
Redirect an ASPX page
Hi
This should be really simple but I can't get it to work. I just want to redirect one page to another site, for example:
I want this page
http://mysite.com/someproduct-C6.aspx
To redirect to
http://someotherpage.com/someotherproduct-c45.aspx
Thank You!
This should be really simple but I can't get it to work. I just want to redirect one page to another site, for example:
I want this page
http://mysite.com/someproduct-C6.aspx
To redirect to
http://someotherpage.com/someotherproduct-c45.aspx
Thank You!
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Redirect an ASPX page
Hello,
you need the folliwng in your .htaccess file in the mysite.com folder:
Regards
Andrew
you need the folliwng in your .htaccess file in the mysite.com folder:
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteRule ^someproduct-C6\.aspx$ http://someotherpage.com/someotherproduct-c45.aspx [Nc,R=301,L]
Regards
Andrew
Re: Redirect an ASPX page
Hi Andrew
Thanks, but this is giving me a 404 file not found.
Any ideas?
THanks
Thanks, but this is giving me a 404 file not found.
Any ideas?
THanks
Re: Redirect an ASPX page
Let me add to that- It doesn't redirect at all. I was getting the 404 when I tried using a page that did not exist to see if it would redirect.
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Redirect an ASPX page
Strange... is there a way ISAPI_Rewrite is not working? Or smth else is processing request first?
Please, provide the rewrite.log for the testing request. Logging issues described in FAQ
Regards
Andrew
Please, provide the rewrite.log for the testing request. Logging issues described in FAQ
Regards
Andrew
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 39 guests