0

I just don't get what is happening. I can create just about any template group name and it works fine, but if I try to create a template group called "themes", I receive the 403 Error Directory access is forbidden. The index.html file just has "test 123" in it, so no coding issue. I have checked my files, and nothing else is called "themes". I may have had themes.html in my root at one point, but that was deleted days ago, so not sure if something is holding onto that and creating some conflict. Is there anything else I can look at or try since I do want to use this as my subdirectory, www.mysite.com/themes?

1
  • It really helps people to answer questions here if you could state the version of EE that you are working with (and usually the version of php used by your web server) in your question. The different versions of EE have differing characteristics. Jun 21, 2021 at 8:43

3 Answers 3

1

If you are using EE 3-6 (possibly lower as well) "themes" is a protected name in the EE Installation at the web root of your install. So mydomain.com/themes is seeing that directory before your template directory and throwing the 403 error. Either choose a different name for your template group or do as JCOGS suggested.

0

EE stores useful CSS and JS resources used by EE itself and some add-ons in the directory /themes - so I imagine any attempt to define a template group with that name will cause problems.

Why your attempts to create a themes.group template folder give you a 403 is unclear to me (rather than some more meaningful error) but suspect that it is EE's way of letting you know that there is a conflict.

I don't know whether it is possible to rename the /themes directory, but it is certainly possible to move it. So a work-around would be to add an extra directory to the webroot called (say) cats and move the /themes directory to be below this - and then update the relevant entries in EE's URL Paths and Settings CP page to point at the new location (i.e. /cats/themes). Then you will avoid the conflict ...

HTH

0

R.Kern and JCOGS Design are correct. Can you not choose a different name for that template group? You can always use template routes if you need themes as one of your segment names. You might need to use dynamic="no" in your channel entries tag parameters too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.