Link To Text File On Server Redirecting To Home Page

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
sd_joomla
Joomla! Intern
Joomla! Intern
Posts: 85
Joined: Sun Mar 29, 2015 5:23 pm

Link To Text File On Server Redirecting To Home Page

Post by sd_joomla » Wed Sep 15, 2021 5:19 pm

Hi.

We are attempting to gain access to our google analytics account with the help of Google.

Google wants us to put a file on our server called "anaylitics.txt" and then provide a link to that file.

I have done that, but when visiting the link it redirects to our Home page.

So if the URL is something like this: http://www.oursite.com/analytics.txt (that's not a real, valid url)

Trying to visit that link redirects to our home page http://www.oursite.com/

I've tried using the default .htaccess file just in case there was a redirect in our original .htaccess file. That didn't work.

There aren't any redirects in joomla's Redirect component.

There aren't any extensions that would forbid such a link to work.

Finally, I am able to directly link to and view the robots.txt file via my browser. So the file extension doesn't seem to be an issue.

Anyone have any ideas? I'm stumped!

User avatar
ltheme
Joomla! Guru
Joomla! Guru
Posts: 631
Joined: Wed Dec 04, 2013 2:43 pm
Location: US
Contact:

Re: Link To Text File On Server Redirecting To Home Page

Post by ltheme » Thu Sep 16, 2021 1:42 pm

Hi,
I think it' default config from your hosting provider, you can ask hosting provider for this 404 or 301 page definition.
Steve (Mr.) - Fan of Joomla! CMS over 10 years
https://ltheme.com/joomla-templates/ <= 120+ Joomla! templates
https://ltheme.com/free-one-page-joomla-templates/ <= 80+ Landing Joomla templates
^Compatible with Joomla! 3.x and Joomla! 4

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 40351
Joined: Sat Apr 05, 2008 9:58 pm

Re: Link To Text File On Server Redirecting To Home Page

Post by Webdongle » Thu Sep 16, 2021 1:50 pm

As a workaround try something like https://extensions.joomla.org/extension ... analytics/ . There are others.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

sd_joomla
Joomla! Intern
Joomla! Intern
Posts: 85
Joined: Sun Mar 29, 2015 5:23 pm

Re: Link To Text File On Server Redirecting To Home Page

Post by sd_joomla » Fri Sep 17, 2021 4:16 pm

Thanks Itheme. What's odd is that I can access the robots.txt file just fine. So it doesn't seem to be the file extension.

Webdongle - I looked at the Extension. That my work if Google allows us another method for account verification. Right now we are trying to verify the account using the analytics.txt file.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 40351
Joined: Sat Apr 05, 2008 9:58 pm

Re: Link To Text File On Server Redirecting To Home Page

Post by Webdongle » Fri Sep 17, 2021 5:07 pm

Is it a txt file to place on your website or a txt in the dns records?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
sozzled
Joomla! Master
Joomla! Master
Posts: 10892
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Link To Text File On Server Redirecting To Home Page

Post by sozzled » Fri Sep 17, 2021 5:58 pm

I think @Webdongle is right. We're not talking about creating a text file in order to verify a property for Google Analytics. We're talking about creating a TXT DNS record: see https://support.google.com/webmasters/answer/9008080.

Not a Joomla problem.
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 40351
Joined: Sat Apr 05, 2008 9:58 pm

Re: Link To Text File On Server Redirecting To Home Page

Post by Webdongle » Fri Sep 17, 2021 8:46 pm

Yep the file verification is an html file not txt. The txt is to add to the dns records
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".


Post Reply

Return to “General Questions/New to Joomla! 3.x”