Banner appears on some pages but not others

This is the place to post questions and comments about the FlexBanner component
westlake
Posts: 30
Joined: Sat Jan 25, 2014 4:48 am

Re: Banner appears on some pages but not others

Post by westlake » Mon Sep 21, 2015 5:48 pm

Thanks for pointing that out, but I have no idea how to solve that problem. Where can I find directions on how to configure my Joomla site more efficiently? I've always been bothered by the URL's and thought there must be a better way of doing it!

Andrew998
Posts: 1345
Joined: Wed Jan 07, 2009 10:43 am

Re: Banner appears on some pages but not others

Post by Andrew998 » Mon Sep 21, 2015 5:52 pm

Just make sure you rename the htaccess.txt file in your root directory to .htaccess and then choose "Use URL rewriting" in configuration under SEO settings.
Andrew998
Developer

westlake
Posts: 30
Joined: Sat Jan 25, 2014 4:48 am

Re: Banner appears on some pages but not others

Post by westlake » Mon Sep 21, 2015 6:10 pm

when I changed the htaaccess file name I got

File “.htaccess” already exists. You must delete or rename the existing file before you can save the current file. You may also specify a different name for the current file.

I changed to URL rewriting, now none of my internal links work!

Andrew998
Posts: 1345
Joined: Wed Jan 07, 2009 10:43 am

Re: Banner appears on some pages but not others

Post by Andrew998 » Mon Sep 21, 2015 6:12 pm

Well you already have a .htaccess file then. You may need to edit it to set the rewrite base. This assumes you aren't using Windows hosting.
Andrew998
Developer

westlake
Posts: 30
Joined: Sat Jan 25, 2014 4:48 am

Re: Banner appears on some pages but not others

Post by westlake » Mon Sep 21, 2015 6:26 pm

I have no idea if I have Windows hosting. My host is hostpapa.com.

Here is the content of my .htaccess file:


RewriteOptions inherit

RewriteEngine on

ErrorDocument 401 http://www.skateparktour.ca/errorpages/401.htm
ErrorDocument 403 http://www.skateparktour.ca/errorpages/403.htm
ErrorDocument 404 http://www.skateparktour.ca/errorpages/404.htm
ErrorDocument 500 http://www.skateparktour.ca/errorpages/500.htm
DirectoryIndex index.php

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/index\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/ab" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^BC\/index\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/bc" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^Advocacy\/?(.*)$ "http\:\/\/www\.skateparktour\.ca\/index\.php\/advocacy$1" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^Stuff\/?(.*)$ "http\:\/\/www\.skateparktour\.ca\/index\.php\/stuff$1" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^BC\/Van_Plaza\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/vancouver\/122\-vancouverskate\-plaza" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/Airdrie\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/central\-alberta\/123\-chinook\-winds\-airdrie" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^index\.htm$ "http\:\/\/skateparktour\.ca\/index\.php" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/Incline\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/ab\/98\-ab\/central\-alberta\/159\-incline\-skate\-bmx\-park\-sylvan\-lake" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^BC\/Chuck\-Bailey\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/bc\/106\-bc\/bc\-lower\-mainland\/surrey\/161\-chuck\-bailey\-youth\-park\-surrey\-bc" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^BC\/Van_Hastings\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/vancouver\/92\-bc\/vancouver\/162\-hastings\-skatepark\-vancouver\-bc" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^BC\/Kamloops\-Rotary\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/bc\-interior\/90\-bc\/bc\-interior\/163\-kamloops\-rotary\-skatepark\-kamloops\-bc" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^BC\/Van\-Leeside\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/bc\/92\-bc\/vancouver\/164\-leeside\-vancouver\-bc" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^BC\/MapleRidge\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/bc\/79\-bc\/bc\-lower\-mainland\/166\-thomas\-haney\-youthpark\-maple\-ridge\-bc" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^BC\/NorthDelta\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/bc\-lower\-mainland\/103\-bc\-lower\-mainland\/delta\/167\-north\-delta\-rotary\-sk8park\-delta\-bc" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^BC\/Penticton_youth\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/bc\-interior\/90\-bc\/bc\-interior\/168\-penticton\-youthpark\-penticton\-bc" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^Indoor\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/indoor" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/Provost\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/ab\/98\-ab\/central\-alberta\/174\-provost" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/Cochrane\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/ab\/100\-ab\/western\-alberta\/181\-cochrane" [R=301,L]

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^AB\/Chestermere\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/ab\/98\-ab\/central\-alberta\/178\-chestermere" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/RedDeer\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/ab\/98\-ab\/central\-alberta\/206\-reddeer" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/MedicineHat\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/ab\/97\-ab\/southern\-alberta\/195\-medicine\-hat\-skatepark" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^Stuff\/Missing\.htm$ "http\:\/\/www\.skateparktour\.ca\/index\.php\/stuff\/submit\-skatepark" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^BC\/Lang_Murrayville\.htm$ "http\:\/\/www\.skateparktour\.ca\/index\.php\/bc\/104\-bc\/bc\-lower\-mainland\/langley\/230\-murrayville\-skateboard\-park\-langley\-bc" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/Olds\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/ab\/98\-ab\/central\-alberta\/231\-town\-of\-olds\-skatepark\-olds\-ab" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/Lethbridge\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/ab\/97\-ab\/southern\-alberta\/232\-lethbridge\-skatepark" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/Lacombe\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/ab\/98\-ab\/central\-alberta\/235\-lacombe\-skatepark\-lacombe\-ab" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/Sylvan\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/ab\/98\-ab\/central\-alberta\/209\-sylvan" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/Leduc\.htm$ "http\:\/\/www\.skateparktour\.ca\/index\.php\/ab\/98\-ab\/central\-alberta\/238\-leduc\-skatepark" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/Beaumont\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/central\-alberta\/98\-ab\/central\-alberta\/240\-beaumont" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/CrowsnestPass\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/ab\/97\-ab\/southern\-alberta\/229\-crowsnest\-pass\-indoor\-skatepark\-blairmore\-ab" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/SpruceGrove\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/ab\/99\-ab\/northern\-alberta\/290\-spruce\-grove\-skatepark" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/Westlock\.htm$ "http\:\/\/www\.skateparktour\.ca\/index\.php\/ab\/northern\-alberta\/99\-ab\/northern\-alberta\/292\-westlock\-skatepark" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^BC\/Lerwick\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/bc\/91\-bc\/van\-island\/315\-lerwick\-skatepark\-courtenay\-bc" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^sponsor$ "http\:\/\/skateparktour\.ca\/index\.php\/home\/sponsorship\-program" [R=301,L]

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^AB\/Clareview\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/96\-ab\/edmonton\/335\-clareview\-skatepark\-edmonton\-ab" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/Westside\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/95\-ab\/calgary\/347\-westside\-skatepark\-calgary\-ab" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/Okotoks\.htm$ "http\:\/\/www\.skateparktour\.ca\/AB\/Okotoks\.htm" [R=301,L]

RewriteCond %{HTTP_HOST} ^skateparktour\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.skateparktour\.ca$
RewriteRule ^AB\/Stettler\.htm$ "http\:\/\/skateparktour\.ca\/index\.php\/98\-ab\/central\-alberta\/371\-stettler\-skatepark\-stettler\-ab" [R=301,L]

Andrew998
Posts: 1345
Joined: Wed Jan 07, 2009 10:43 am

Re: Banner appears on some pages but not others

Post by Andrew998 » Mon Sep 21, 2015 6:34 pm

Is your site hosted in a sub directory? If so, rewrite base will need to point to that directory. If you can't get anywhere you can always turn off the use URL rewriting option.

And remember to clear your cache!
Andrew998
Developer

westlake
Posts: 30
Joined: Sat Jan 25, 2014 4:48 am

Re: Banner appears on some pages but not others

Post by westlake » Mon Sep 21, 2015 7:06 pm

No, this site is in the main directory.

I have cleared the site cache and my browser cache. Internal links now working but even with RL rewrite on, the banner that should appear on this page, still does not appear (it still appears on the other pages that are configured the same way as near as I can tell).

Thanks for all the help. Any suggestions are welcome!

westlake
Posts: 30
Joined: Sat Jan 25, 2014 4:48 am

Re: Banner appears on some pages but not others

Post by westlake » Wed Jun 22, 2016 8:27 pm

Hi Andrew, I'm having similar problems again even after fixing the URL

I have a banner ad location in the side column of my site. One specific banner does not appear on the pages it is set to appear on, even though other ads appear on those pages as configured to.

Here are the ad settings
https://www.dropbox.com/s/au2nyo26mzcxx ... 2.png?dl=0

Content restriction settings:
https://www.dropbox.com/s/mwihrlc9bzivd ... 0.png?dl=0
indicating the ad should appear on these pages:

http://skateparktour.ca/96-ab/edmonton/ ... dmonton-ab
http://skateparktour.ca/96-ab/edmonton/ ... dmonton-ab
http://skateparktour.ca/ab/central-alberta (it does appear here!)

And the location settings:
https://www.dropbox.com/s/8x17blwm12bj3 ... 3.png?dl=0

Any help you can offer is much appreciated!

Derrick

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest