Jump to content
gadlol

SEO Friendly Urls - a new approach

Recommended Posts

On 5/18/2019 at 11:51 AM, gadlol said:

Hi Richard @freakystreak

Thank you for your good words.

Can you please tell me which version of oscommerce you have installed and using? This is strange, it was never mentioned to me such kind of problem...

From what I can understand is that when you navigate for example to mystore.com/admin/ there must be a something that prevents admin backend to load because my seo class thinks that is also another page. Although it is a folder.

So first I would make sure that the admin backend does not call seo_friendly_urls.php which is the normal thing and then I would check the apache - server configuration.

I have checked the admin backend and I can't see any call to 'seo_friendly_urls.php. Can you advise me as to what I should look out for regarding the Apache Server configuration?

 

Thank you.


Ah, the world wide web. What a wonderful place.

Share this post


Link to post
Share on other sites

Hi Gadiol, hope you are well.

Been struggling to find an answer to this problem I still have logging into my admin using your fine contribution. I have double checked to see if your class, seo_friendly_urls is called and the answer is no. I'm at a loss now as to where to go from here. I can access the site admin but I said in my previous post, have to disable your add-on, log in and then re-enable your add on again. The version of PHP has changed. Could this effect anything? Is there anything specific I should look-out for in my Apache Server Configuration? Many thanks.


Ah, the world wide web. What a wonderful place.

Share this post


Link to post
Share on other sites
On 6/3/2019 at 2:43 PM, freakystreak said:

Hi Gadiol, hope you are well.

Been struggling to find an answer to this problem I still have logging into my admin using your fine contribution. I have double checked to see if your class, seo_friendly_urls is called and the answer is no. I'm at a loss now as to where to go from here. I can access the site admin but I said in my previous post, have to disable your add-on, log in and then re-enable your add on again. The version of PHP has changed. Could this effect anything? Is there anything specific I should look-out for in my Apache Server Configuration? Many thanks.

Hi Richard... Can you please send me some more info such as your website url e.t.c. so to go from there... Please send them to p.m. and lets continue from there... and once we solve the problem we will post the solution here... Thank you ..


Check out the great Alternative Administration System addon for osCommerce!

Share this post


Link to post
Share on other sites

Hi @gadlol

 

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/xxx/public_html/includes/classes/seo_friendly_urls.php on line 380

 

while ( $loop && ( ( $option = each( $children[$parent] ) ) || ( $parent > $root_id ) ) ){

What is the best approach to replace the each? Versions from 7.0 get that warning.. Really wanted to upgrade PHP to the new version.

Also for the alias pages is there any way to add a functionality for multilingual alias?

Best regards

Share this post


Link to post
Share on other sites
1 hour ago, sinopia said:

Hi @gadlol

 

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/xxx/public_html/includes/classes/seo_friendly_urls.php on line 380

 

while ( $loop && ( ( $option = each( $children[$parent] ) ) || ( $parent > $root_id ) ) ){

What is the best approach to replace the each? Versions from 7.0 get that warning.. Really wanted to upgrade PHP to the new version.

Also for the alias pages is there any way to add a functionality for multilingual alias?

Best regards

Hi @sinopia 

about the while loop there is not an easy way to do it with just foreach  loops and without having the need to use recursive function. However I have code it and update it so no need of each so no deprecated messages and plus the class runs faster now. Send me p.m. for more details.

About the "Also for the alias pages is there any way to add a functionality for multilingual alias?" do you mean for example: www.mystore.com/specials.php to www.mystore.com/es/specials/ ?

Regards,

John


Check out the great Alternative Administration System addon for osCommerce!

Share this post


Link to post
Share on other sites

Hi @gadlol thank you for your quickly answer.

I'll send you a message right now.

About the alias something like define for multiple language (I guess it's possible to do it). Example:

mystore.com/specials

mystore.com/es/especiales

mystore.com/pt/especiais

All for specials.php file.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×