Elxis CMS Forum

Support => General => Topic started by: cfb1972 on October 21, 2010, 23:48:56

Title: 403 error on Content Category (blog view) [SOLVED]
Post by: cfb1972 on October 21, 2010, 23:48:56
Hi,

I'm getting a 403 page error when trying to access the sub-menu of my main menu bar. The sub-menu has been created as a link to a "Content Category (blog view)" which adds a "/blog/" prefix to my URL. Is there a way to not show /blog/ in the url?

Thanks,

Bob

the link is here

http://zimbrul.net/blog/articole-romani/cultural/

without "/blog/" the link works fine...
Title: Re: 403 error on Content Category (blog view)
Post by: webgift on October 22, 2010, 13:51:52
if you disable the SEO RPO extension from Global Configuration of Elxis Platform are you still having that 403 page error ?
Title: Re: 403 error on Content Category (blog view)
Post by: cfb1972 on October 22, 2010, 14:08:22
I'm not having that 403 page error if I disable SEO Pro but obviously I'm getting some uglier urls.
Is there a way to disable adding "/blog/" to the urls if the SEO Pro is acrivated and the page show cathegory blog?
It might be a problem with my previous settings when the ".../blog" was an external link to a wordpress blog (moved now at http://blog.zimbrul.net) and it might have problems with the fact that I've set up a permamnent redirection from ".../blog"
Title: Re: 403 error on Content Category (blog view)
Post by: webgift on October 22, 2010, 14:24:18
1.Verify the Elxis Version that you have.
2. Download that Version from EDC (http://www.elxis-downloads.com/)
3. Folder includes/seopro
Replace the com_content.php from the zipped file to your server via FTP program like Filezilla
4. Enable SEOPRO extension.

Now tell us if the issue fixed ;)

* /blog it's not a folder in order to change that. It is total different with your subdomain that you mention above.
Title: Re: 403 error on Content Category (blog view)
Post by: cfb1972 on October 22, 2010, 14:38:15
I've done that and the problem persists  :-[

I understand that .../blog in Elxis is not as the previous thing but I've redirected the traffic of by ..../blog link to http://blog.mysite.... and it might be a problem somewhere.

So...any chance to remove the " /blog/ " bit from the url?
Title: Re: 403 error on Content Category (blog view)
Post by: apkoutsou on October 22, 2010, 18:38:29
No there is no way you can remove the "blog" string from the url and at the same time have SEO Pro enabled and showing content in a blog style!! You see the "blog" string is for telling Elxis that the content will be displayed like a blog when SEO Pro is enabled.

The only thing you can do is change the Elxis core and make Elxis understand something else than "blog" when content is to be displayed in a blog style. The only disadvantage is that each time you update Elxis, you have to redo the same changes.

The file you must change is /includes/seopro/com_content.php and lines 67, 75, 154, 474, where you must replace "blog" string (NOT THE VARIABLE NAME) to the desired string.
Title: Re: 403 error on Content Category (blog view)
Post by: cfb1972 on October 22, 2010, 18:51:38
Thanks for the answer but I wonder what makes that to show the 403 page error?

Bob
Title: Re: 403 error on Content Category (blog view)
Post by: datahell on October 22, 2010, 20:27:11
I think it is obvious.
You have a sub-domain named "blog" and a re-write rule in order for the sub-domain to work from http://zimbrul.net/blog/ to  http://blog.zimbrul.net/
This generates the error in Elxis as "blog" is a reserved SEO PRO base name and there should not be any folder with that name inside your www root folder as Elxis needs to use like that: http://zimbrul.net/blog/section_seo_title/

One way to solve this is to use the "www" prefix in the Elxis site and tell apache that the following urls are different:
http://zimbrul.net/
http://www.zimbrul.net/
In this case, this will work: http://www.zimbrul.net/blog/

Other solutions:
- Rename your sub-domain from "blog" to something else (example: "zblog").
- Put Elxis also in a sub-domain.
- Modify Elxis SEO PRO and component content to use a different SEO PRO base name than "blog".
Title: Re: 403 error on Content Category (blog view)
Post by: cfb1972 on October 22, 2010, 22:03:01
- Modify Elxis SEO PRO and component content to use a different SEO PRO base name than "blog".

I've choosen this but now I'm getting a 404 not found error  ::)

see attached com_content.php file.

[attachment deleted by admin]
Title: Re: 403 error on Content Category (blog view)
Post by: apkoutsou on October 23, 2010, 02:22:02
Yes! I forgot, you have to modify also /includes/sef.php line 164... (sorry)
Title: Re: 403 error on Content Category (blog view)
Post by: cfb1972 on October 23, 2010, 10:44:00
Not working mate...not working
Title: Re: 403 error on Content Category (blog view)
Post by: apkoutsou on October 23, 2010, 12:00:35
hmmm... It's working for me though...

What excatly happens:
1. The SEO Pro url is not created (e.g. instead of '/zblog/category-name/' you get a link like '/blog/category-name'), and/or
2. Though the SEO Pro url is created, Elxis returns a PageNotFound error (which is something that I confirmed in your http://zimbrul.net/ site).

In case 1 you have to edit /includes/seopro/edit com_content.php - in case 2 you have to edit /includes/sef.php .

Are you sure you changed the "blog" string in sef.php to the same string as in com_content.php ?? (Sorry for asking, but I believe that the error lies there).

Title: Re: 403 error on Content Category (blog view)
Post by: datahell on October 23, 2010, 13:02:14
He has to edit the component content it self (components/com_content/).
Title: Re: 403 error on Content Category (blog view)
Post by: apkoutsou on October 23, 2010, 13:15:59
Sure, modify:
1. /components/com_content.html.php line 473
2. /components/com_content.php lines 1382, 1384, 1437, 1439

But these lines refer to the internal context of the content to be displayed.

The problem here is that when you type e.g. http://zimbrul.net/zblog/articole-romani/cultural/, Elxis returns a PageNotFound error, something that should not happen if /includes/seopro/edit com_content.php and /includes/sef.php are properly modified...

On my local installation (2009.2), changing only /includes/seopro/edit com_content.php and /includes/sef.php files returned no error when typing http://localhost/zblog/category-name/
Title: Re: 403 error on Content Category (blog view)
Post by: cfb1972 on October 23, 2010, 14:22:11
I give up! It should be something wrong but I cannot say as long as I've done what you both said.
Title: Re: 403 error on Content Category (blog view)
Post by: datahell on October 23, 2010, 19:31:35
Restore the original files, publish everything, send me username/password for your FTP and I will change this for you.
Title: Re: 403 error on Content Category (blog view)
Post by: cfb1972 on October 23, 2010, 20:58:41
Hi Datahell, I've sent you a message with my FTP details, many thanks for your support.
Title: Re: 403 error on Content Category (blog view)
Post by: datahell on October 23, 2010, 23:11:03
Done!
Now your blog is zblog :)

Files modified:
includes/sef.php
includes/seopro/com_content.php
components/com_content/content.php
components/com_content/content.html.php
administrator/includes/seovs.class.php
Title: Re: 403 error on Content Category (blog view) [SOLVED]
Post by: cfb1972 on October 24, 2010, 00:16:45
Great job and many thanks.
So I'm the only one with Elxis that turns the blog into a Zblog  ::)
Title: Re: 403 error on Content Category (blog view) [SOLVED]
Post by: datahell on October 24, 2010, 08:35:10
Yes, you are the Zorro  :D

[attachment deleted by admin]
Title: Re: 403 error on Content Category (blog view) [SOLVED]
Post by: webgift on October 24, 2010, 12:11:41
 ;D ;D
Title: Re: 403 error on Content Category (blog view) [SOLVED]
Post by: cfb1972 on October 24, 2010, 12:37:26
As long as my site (http://my site) works this is fine  ;)