Welcome to WebmasterWorld Guest from 54.158.248.112

Forum Moderators: Ocean10000 & phranque

How can I redirect a sub page of a 301 domain

     
4:55 pm on Jun 18, 2018 (gmt 0)

New User

joined:Dec 20, 2017
posts: 37
votes: 0


Hi
I have a domain set up as a 301 at the registrar to my new domain.
But how can i redirect a particular sub page of old domain and point
that to a sub page on my new domain?
Registrar does not allow it.

Can i do it via htaccess on my new domain?
thanks
Arturo
8:41 pm on June 18, 2018 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:14932
votes: 653


You can either do everything via htaccess, or you can do things globally at the registrar level, but it is very unlikely you will be able to mix the two. Once you've set up the DNS to point to some physical location that is under your own control, you can redirect to your heart's content.
7:19 am on June 19, 2018 (gmt 0)

New User

joined:Nov 28, 2016
posts:10
votes: 0


And the physical location has to be a fully hosted site?
7:32 am on June 19, 2018 (gmt 0)

Moderator from US 

WebmasterWorld Administrator keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 26, 2001
posts:12125
votes: 775


how can i redirect a particular sub page of old domain and point
that to a sub page on my new domain?
The best way is to set up a 301 redirect in the htaccess of the old domain.

Another (easy way) is to use a Meta Refresh redirect in the HEAD of the old page.

<meta http-equiv="refresh" content="0; url=http://new-domain.com/page.html">
8:50 am on June 19, 2018 (gmt 0)

Moderator from US 

WebmasterWorld Administrator keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 26, 2001
posts:12125
votes: 775


[added]
However the Meta tag method will not update SE indexing. The htaccess 301 method will.
9:50 am on June 19, 2018 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11388
votes: 157


in either case you must be hosting your own web server to redirect individual url requests.
9:55 am on June 19, 2018 (gmt 0)

Moderator from US 

WebmasterWorld Administrator keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 26, 2001
posts:12125
votes: 775


in either case you must be hosting your own web server to redirect individual url requests.
Shared hosting is fine unless the admins restrict it.
10:25 am on June 19, 2018 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11388
votes: 157


Shared hosting

is still your web server, as opposed to a server provided by your registrar as the OP implies...
10:27 am on June 19, 2018 (gmt 0)

Moderator from US 

WebmasterWorld Administrator keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 26, 2001
posts:12125
votes: 775


OK, I understand what you meant now.
5:39 pm on June 19, 2018 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:14932
votes: 653


And the physical location has to be a fully hosted site?
Depends what you mean by “fully hosted”. In theory you could set up a directory whose sole purpose is to receive requests and redirect them to an entirely different server. If we’re talking about shared hosting, it’s up to the host whether there has to be an actual domain living at the first address (the one you’re redirecting away from). In fact it may be an academic distinction: if all requests for example.com are redirected to example.org, it can’t possibly make any difference whether there is a physical file corresponding to example.com/index.html.
9:17 pm on June 19, 2018 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11388
votes: 157


And the physical location has to be a fully hosted site?

it could be another virtual host configuration on the same machine your main site is on.
it could even specify the same document root directory so you can do all your redirects for both domains in one place...
10:55 pm on June 20, 2018 (gmt 0)

New User

joined:Nov 28, 2016
posts:10
votes: 0


Thanks for the directions and tips
Arturo