WebSite X5Help Center

 
Marcus C.
Marcus C.
User

403 Forbiden code with blogs  en

Author: Marcus C.
Visited 1349, Followers 1, Shared 0  

I am pretty sure that this has nothing to do withWS_5 Pro but wanted to see if anyone has had this problem before, as I chase this problem down.

Our site is very active with blogs, and all working fine for past several years. Understanding that each blog is given it’s URL i.e. example.com/blog/?”blog title” (which is the og:url meta tag given).

All of a sudden the URL is rendering the 403 Forbidden. when sharing on Facebook, Triter ands others. However when hitting the blog page via example.com/blog/index.php?”blog title” works like a charm.

example.com/blog/? “title” Gets 403 code.

example.com/blog/index.php/? “title” works great,

After doubling checking all the prodical settings, and not able trace down my break down. Only occurs when sharing on Facebook, Twitter, etc, as they really use the mete tags the most.

Just tought I would put it out there for any ideas,,,,,  running on apache server.

Thanks much !!!

Marcus

Posted on the
2 ANSWERS - 1 USEFUL - 1 CORRECT
Miguel Galarza
Miguel Galarza
User

Hi Marcus.


It happened to me a few days ago with a page.
The problem was the .htaccess file.


There was a label that said something like that (sorry I don't remember exactly how it was)


<File 403.shtm>
file allow, deny
allow all deny
</File>

Deleting that tag resolved the issue.

To download the .htacces and review it go to step 5 - export the site to the internet (but don't upload anything)
Open the folder to see the contents of your site's destination folder (see image) and download the .htaccess.
Do not close the window.

Locate the downloaded .htaccess file and open it with an editor (I use notepad++ but you can open it with windows notepad or similar if you use another system, as long as it's plain text).


Check if you have that tag described above with the 403 error and delete that tag.


NOTE: be careful not to delete other lines.


Save the .htaccess and go back to the program WSX5. Delete the .htaccess that is on the website and then upload the edited .htaccess.

With that I solved my problem.
I hope it solves yours too.

Good day.

Read more
Posted on the from Miguel Galarza
Marcus C.
Marcus C.
User
Author

Thanks Miguel !

This was a big help!  I located and found that the “blog” folder was missing it’s own .htaccess file that got deleted somehow. The only command in that file was is to identify the default page for that directory only, "DirectoryIndex index.php”,  thus then able to then call up the automatically generated og:url meta tag WSx5 gives each post/blog.

All fixed, thanks again, big help!

Marcus

Read more
Posted on the from Marcus C.