Post by sidclel » Tue Jan 23, 2024 11:19 pm

How can I edit htaccess to allow adsense opencart 3.0.3.8 code
https://www.mysite.com/ads.txt
it is giving ERROR 403
ACCESS DENIED

https://www.saleples.com/


New member

Posts

Joined
Sat Apr 14, 2012 9:19 am


Post by Cue4cheap » Wed Jan 24, 2024 12:29 am

More info needed.
Has your site been approved with google adsense?
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by ADD Creative » Wed Jan 24, 2024 12:31 am

Try changing.

Code: Select all

<FilesMatch "(?i)((\.tpl|\.twig|\.ini|\.log|(?<!robots)\.txt))">
To.

Code: Select all

<FilesMatch "(?i)((\.tpl|\.twig|\.ini|\.log|(?<!robots|ads)\.txt))">

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by paulfeakins » Wed Jan 24, 2024 6:57 pm

sidclel wrote:
Tue Jan 23, 2024 11:19 pm
How can I edit htaccess to allow adsense opencart 3.0.3.8 code
https://www.mysite.com/ads.txt
it is giving ERROR 403
ACCESS DENIED
Check the file permissions are set to 644?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by sidclel » Thu Jan 25, 2024 10:41 am

ADD Creative wrote:
Wed Jan 24, 2024 12:31 am
Try changing.

Code: Select all

<FilesMatch "(?i)((\.tpl|\.twig|\.ini|\.log|(?<!robots)\.txt))">
To.

Code: Select all

<FilesMatch "(?i)((\.tpl|\.twig|\.ini|\.log|(?<!robots|ads)\.txt))">
perfect friend. It worked great, thank you

https://www.saleples.com/


New member

Posts

Joined
Sat Apr 14, 2012 9:19 am

Who is online

Users browsing this forum: No registered users and 20 guests