Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / 301 redirect on the list and ads

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

301 redirect on the list and ads

More
9 years 9 months ago #12512 by Max1985
Replied by Max1985 on topic 301 redirect on the list and ads

tompap wrote: Ok I take a look to the 2 var_dump, it was not correct due to wrong php code in the syntax.

So you have the same value.
But I don't understand finally what was the problem first ?

is there something wrong with:

new.allkharkov.info/details/79-stroiteln...khnika-dlya-vas.html


It is necessary that when coming to this page:
new.allkharkov.info/79-stroitelnye-mater...khnika-dlya-vas.html
Trigger 301 redirek on:
new.allkharkov.info/details/79-stroiteln...khnika-dlya-vas.html

Here the working code:
$app->redirect(TRoute::_('index.php?option=com_adsmanager&view=details&id='.$content->id.'&catid='.$catid.''.$itemid));

But when I add, there is a cyclic forwarding.

Can you look now added the code!
More
9 years 9 months ago #12574 by tompap
Replied by tompap on topic 301 redirect on the list and ads
I think the cyclic forwarding comes from the fact that you are doing the redirect without condition.
So even if it's now the correct URL you redirect it again and again

You should check if the URL is correct if correct Nothing if not redirect
More
9 years 9 months ago #12598 by Max1985
Replied by Max1985 on topic 301 redirect on the list and ads

tompap wrote: I think the cyclic forwarding comes from the fact that you are doing the redirect without condition.
So even if it's now the correct URL you redirect it again and again

You should check if the URL is correct if correct Nothing if not redirect


To do so:
if (TRoute::_('index.php?option=com_adsmanager&view=details&id='.$content->id.'&catid='.$catid.''.$itemid)) {
		} else {
$app->redirect(TRoute::_('index.php?option=com_adsmanager&view=details&id='.$content->id.'&catid='.$catid.''.$itemid));
}

Nothing happened. Please correct!
More
9 years 9 months ago #12681 by tompap
Replied by tompap on topic 301 redirect on the list and ads
No you should compare $_SERVER and TRoute....
(please remove ''.$itemid also)
More
9 years 9 months ago #12687 by Max1985
Replied by Max1985 on topic 301 redirect on the list and ads

tompap wrote: No you should compare $_SERVER and TRoute....
(please remove ''.$itemid also)


To do so:
if ($_SERVER['index.php?option=com_adsmanager&view=details&id='.$content->id.'&catid='.$catid] ) {
		} else {
$app->redirect(TRoute::_('index.php?option=com_adsmanager&view=details&id='.$content->id.'&catid='.$catid));
}
Again cyclic forwarding.
More
9 years 9 months ago #12735 by juloaadmin
Replied by juloaadmin on topic 301 redirect on the list and ads
Code is not correct.

Please resent me FTP + admin account + URL + link to this conversation. I will do the code myself)
Moderators: perry
Time to create page: 0.177 seconds
Powered by Kunena Forum