The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Tumblr personal domain issues - bypassing my java script?, My personal domain seems to be bypassing my java script?
mobkon
post Apr 17 2015, 03:22 PM
Post #1





Group: Members
Posts: 5
Joined: 17-April 15
Member No.: 22,497



Hey all -

Trying to figure out if this is an issue with my domain name provider or tumblr...

I have my tumblr page set up so that when it goes to my main tumblr page (mydomain.tumblr.com) it gets forwarded to mydomain.tumblr.com/home

I used this script:

<script type="text/javascript">
if(location.href == 'http://mydomain.tumblr.com/') location.replace('http://mydomain.tumblr.com/home');;
</script>

and it works great and as it should. But the issue is when I point my personal domain name to my tumblr page by following these instructions: https://www.tumblr.com/docs/en/custom_domains - my page no longer gets forwarded to mydomain.tumblr.com/home - instead it just goes right to mydomain.tumblr.com and just seems to bypass the java script that I used.

Any idea how I can fix this? What end does the problem lay on? Tumblr or my domain host?

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Apr 17 2015, 03:45 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



If I understood correctly you have a domain name like www.mywebsite.com that you want to redirect to www.mywebsite.com/home? In that case you must use those URLs in the javascript.



User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
mobkon
post Apr 17 2015, 04:58 PM
Post #3





Group: Members
Posts: 5
Joined: 17-April 15
Member No.: 22,497



QUOTE(Christian J @ Apr 17 2015, 04:45 PM) *

If I understood correctly you have a domain name like www.mywebsite.com that you want to redirect to www.mywebsite.com/home? In that case you must use those URLs in the javascript.


This was it! Solved it!

THANK YOU! biggrin.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 03:15 AM