| Author |
Message |
|
czonny
|
Post subject: URL without zone name Posted: Thu Mar 29, 2012 2:05 pm |
|
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
|
|
 |
|
 |
|
maskas
|
Post subject: Re: URL without zone name Posted: Thu Mar 29, 2012 7:47 pm |
|
 |
| 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.
|
|
 |
|
 |
|
czonny
|
Post subject: Re: URL without zone name Posted: Thu Mar 29, 2012 7:55 pm |
|
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!
|
|
 |
|
 |
|
maskas
|
Post subject: Re: URL without zone name Posted: Thu Mar 29, 2012 8:14 pm |
|
 |
| 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.
|
|
 |
|
 |
|
czonny
|
Post subject: Re: URL without zone name Posted: Thu Mar 29, 2012 8:22 pm |
|
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.
|
|
 |
|
 |
|
chrisazuka
|
Post subject: Re: URL without zone name Posted: Tue Nov 13, 2012 2:04 pm |
|
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?
|
|
 |
|
 |
|
maskas
|
Post subject: Re: URL without zone name Posted: Tue Nov 13, 2012 6:53 pm |
|
 |
| Project Developer |
Joined: Tue Apr 28, 2009 9:43 am Posts: 1720
|
|
 |
|
 |
|
maskas
|
Post subject: Re: URL without zone name Posted: Tue Nov 13, 2012 6:59 pm |
|
 |
| 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.
|
|
 |
|
 |
|
chrisazuka
|
Post subject: Re: URL without zone name Posted: Wed Nov 14, 2012 9:25 am |
|
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/welcomebut the links will still be having zone: http://examplesite.com/en/zone/welcomeAs 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.
|
|
 |
|
 |
|
maskas
|
Post subject: Re: URL without zone name Posted: Wed Nov 14, 2012 9:09 pm |
|
 |
| 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.
|
|
 |
|
 |
|