I am trying to loop through a certain number of pages to index them.
My code is as following:
$indexedpages = '5';
for ($i = 0; $i <= $indexedpages; $i++) {
$url = 'https://thisisadomain.com/'.$i.'/';
....
rest of code here
....
}
But this does not seam to work, it only takes the first page over and over again for the number given in $indexedpages.
What do I do wrong?
Thank you