Solved

Redirect URL Get Page Name

Posted on 2014-01-02
5
298 Views
Last Modified: 2014-01-28
If I have a URL like this

http://www.mysite.com/this-is-my-page/

I want to have the 404 page redirect it to

http://blog.mysite.com/this-is-my-page/

How can I do this?
0
Comment
Question by:theideabulb
[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
  • 2
5 Comments
 
LVL 29

Expert Comment

by:becraig
ID: 39752533
This would be based more on your web server / hosting setup as this would be done at the server level instead of a simple page redirect.

Can you provide some more info on your website setup.
0
 

Author Comment

by:theideabulb
ID: 39752537
I am using CF10 Enterprise.  IIS 7.5 Windows 2008R2
0
 

Author Comment

by:theideabulb
ID: 39752680
Here is what I did.  I dumped out the CGI variables on the 404.cfm page I had and noticed the url i needed was in the query_string. So this is what I did and so far its working well.  This will just be temporary until the search engines can catch up with the right urls.

<cfset theString = cgi.query_string>
<cfset strippedString = listlast(thestring,';')>
<cfset newurl = replacenocase(strippedString,'www','blog')>

Open in new window

0
 
LVL 29

Accepted Solution

by:
becraig earned 250 total points
ID: 39752690
ok so I guess I am not clear you want 404's for a SPECIFIC request to go that URL or just any failed requests  ?

If this is for ANY requests to the www.xxx you can use a custom redirect using the steps below:
http://www.orcsweb.com/blog/jamie-furr/how-to-create-custom-error-pages-in-iis-7-5-with-asp-net/
0
 
LVL 16

Assisted Solution

by:Gurpreet Singh Randhawa
Gurpreet Singh Randhawa earned 250 total points
ID: 39764168
0

Featured Post

Containers and Docker for Everyone

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

Question has a verified solution.

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

PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

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