FORUM IS CLOSED. PLEASE USE QUESTIONS / ANSWERS PAGE INSTEAD
Login  |  Forum  |  Search   

Board index » Development » Help requests




Post new topic Reply to topic  [ 10 posts ] 
 
Author Message
 Post subject: URL without zone name
 Post Posted: Thu Mar 29, 2012 2:05 pm 
Offline

Joined: Thu Mar 29, 2012 2:00 pm
Posts: 9
Hi,
I have problem with this amazing CMS - form me it is not possible to have an zone name in url (like /left/something) - I know that this zone name for url I can change - but I need to cancel it completely. Of course, I dont need more than 1 zone in menu. I try a lot of ideas how to do this, but I m not succesfull.

Can advise me anyone?
Thanks and sorry for my english


Top 
 Profile  
 
 Post subject: Re: URL without zone name
 Post Posted: Thu Mar 29, 2012 7:47 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
If you have just few pages, you can use one page per zone. That means create one zone per page. Then you could access your pages like that: http://example.com/zone_name/

But user will not be able to add new pages easily.


OR


1. in ip_themes/lt_pagan/main.php search all output content and remove zone part before output. Use str_replace or preg_replace.
2. In ip_config.php (at the top or bottom) make the opposite. Add zone part to $_SERVER['REQUEST_URI'] variable.

It works on my test environment.


Top 
 Profile  
 
 Post subject: Re: URL without zone name
 Post Posted: Thu Mar 29, 2012 7:55 pm 
Offline

Joined: Thu Mar 29, 2012 2:00 pm
Posts: 9
Oh my ... ! I tried this, but I replace REQUEST_URI in template and it is too late - so your way is absolutely working and many thanks for sharing and help me!


Top 
 Profile  
 
 Post subject: Re: URL without zone name
 Post Posted: Thu Mar 29, 2012 8:14 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
By the way, there is event "site.outputGenerated" alert before printing output. Theoretically it would be better to write a plugin which would catch that event and replace urls, instead of adding code to template. But events are not documented yet. So the only way to learn how to use them is searching current code for examples.


Top 
 Profile  
 
 Post subject: Re: URL without zone name
 Post Posted: Thu Mar 29, 2012 8:22 pm 
Offline

Joined: Thu Mar 29, 2012 2:00 pm
Posts: 9
Sounds great, but if this not in documentation, I have no way to do it that you write. Way with $_SERVER not so systematicaly, but fully working and this is i single website, wich I do myself - so for this time it is good.

Of course - I think, taht this "problem" have more users - in documentation is wrote, that zone url helped Google - but I dont think it.


Top 
 Profile  
 
 Post subject: Re: URL without zone name
 Post Posted: Tue Nov 13, 2012 2:04 pm 
Offline

Joined: Wed Aug 22, 2012 11:10 am
Posts: 51
maskas wrote:
By the way, there is event "site.outputGenerated" alert before printing output. Theoretically it would be better to write a plugin which would catch that event and replace urls, instead of adding code to template. But events are not documented yet. So the only way to learn how to use them is searching current code for examples.


@maskas,

Using this method this plugin method and event "site.outputGenerated", how would this affect SEO?

With this method, will the links still be having the zone part?

What are your recommendations to develop this plugin while to having SEO issues?


Top 
 Profile  
 
 Post subject: Re: URL without zone name
 Post Posted: Tue Nov 13, 2012 6:53 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
ImpressPagse 2.x event system is documented http://www.impresspages.org/docs2/core2/events/

UHU


It should not influence SEO in any way, because all that happens in PHP. Google doesn't know a thing about that.


Top 
 Profile  
 
 Post subject: Re: URL without zone name
 Post Posted: Tue Nov 13, 2012 6:59 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
If you try to get rid of zone part just to be better at SEO, you are wasting your time. This has nearly no influence. One additional link to your site will make better results than that. I would never do such hack to gain 0.00000001 in ranking. And no one has proved that getting rid of it will help to SEO at all. Google knows how deep your page is not by amount of slashes in URL, but how many clicks you need to access that page from main page.


Top 
 Profile  
 
 Post subject: Re: URL without zone name
 Post Posted: Wed Nov 14, 2012 9:25 am 
Offline

Joined: Wed Aug 22, 2012 11:10 am
Posts: 51
Hi @maskas,

I am not doing this to gain enhanced SEO. My question is if doing this plugin will result in search engine problem whereby in the browser address bar there will not be zone: http://examplesite.com/en/welcome

but the links will still be having zone:
http://examplesite.com/en/zone/welcome

As you can see, this will have search engine issues so my question is to know if this plugin will cause such a problem of which you have confirm that there wouldn't be any such problem.

and the plugin i'm trying to develop will not take away all zones. rather it will give me the option to select which zone or zones i want to remove from url.


Top 
 Profile  
 
 Post subject: Re: URL without zone name
 Post Posted: Wed Nov 14, 2012 9:09 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
I don't see major issues with search engines if you implement int correctly. Because your links should be also without zone part. So for search engines it should be the same.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 10 posts ] 

Board index » Development » Help requests


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron