I am using the latest version of osTicket (1.9.4)I have been perusing these forums for the last 2 days and have been unable to find an answer regarding Site Pages. I want to add a link to a short video explaining the process of setting up a password to a newly registered user. Our customers are, let's say, a little slow and tend to freak out unnecessarily when the tiniest of things change. The e-mail that is sent out upon registering a new user I know is under Admin > Settings > Access > Confirmation e-mail. I am able to edit this with no trouble and my plan was to use HTML to embed a link to the video created. This sort of works but does not seem to consistently work however - that's probably more of an HTML problem so my question does not necessarily lie with that. So I set about creating a new Site Page that allows me to create an HTML page that I can easily embed the video link - and then add that to the confirmation e-mail sent to newly registered users. However, when I create the page it tells me the Public URL is pages/how-to-video. Upon clicking the link on Admin > Manage > Pages > Public URL, it gives a not found error. Has this page actually been created and if so, where is that "public URL" located within my ticketing system? The link osTicket appears as helpdesk.companyname.com/pages/how-to-video, but returns the not found error.Additionally, I tried modifying the Confirmation e-mail coding (include/i18n/en_US/templates/pages/registration-client.yaml) and this did not alter the page whatsoever.I'm at a bit of a loss on the proper way to find where Site Pages are actually created, other than altering the 3 default ones. I haven't seen a lot of discussion on it, nor any info on the FAQ or Wiki.Any guidance or suggestions would be greatly appreciated. Thanks.

The url is displayed on the page then you edit the custom page.http://yourdomain.tld/pages/yourSitePageThey are stored in the database.

I know where the URL is displayed and where it is suppose to be, as mentioned above:"when I create the page it tells me the Public URL is pages/how-to-video. Upon clicking the link on Admin > Manage > Pages > Public URL, it gives a not found error. Has this page actually been created and if so, where is that "public URL" located within my ticketing system? The link osTicket appears as helpdesk.companyname.com/pages/how-to-video, but returns the not found error."Our ticketing system is at a subnet This page is returning the error and would suggest it isn't being created for me in the database.Nor is it appearing at the top level domain Any additional thoughts why this has not been created for me in the database? Thanks.

Stupid suggestion, but what happens when you use "howtovideo" instead of "how-to-video" as the pages name. I remember that I had some problems some time ago with site pages, but can't remember exactly if I solved it by using a name with spaces, dots and so on. So maybe stupid, but give it a try ;)

I wouldn't consider that a stupid suggestion. I just tried that (as well as shortening it to just video) but still comes up the with same "page not found error." Trying to create the page with dots and spaces automatically converted them to hyphens. I'm stumped.

After you create the page... and click save.  Does it show up in the interface as a page? (that you can then view and edit)  If so then its saving it in the database.My thought is that your .htaccess or webserver is sending the visitor to the wrong place.

Yes I am able to view and edit the page within the interface. I can also now see the page within the database in the ost_content table (was not able to with the page with hyphens) yet still does not send me to that page (domain.com/pages/video)I'm not familiar with configuring .htaccess but I suppose I'll have to dig around. Not sure what to look for though.

I'm not sure personally... but I would think that if you take a look at your webserver error log it would tell you the address being requested and why its failing. Just a thought...

I may have figured out the why. Logs weren't showing anything useful but, I am using ssh to connect to the webserver running on a different subnet (I am on x.x.211.x, and the webserver is on x.x.217.x for example) I will have to physically go the webserver itself and try to create the page and see if that works. I'll report back when I am able to access the server physically with my, hopefully, fixed site page. Thanks for all of your guidance and suggestions through this.

If you suspect a .htaccess issue, just post the contents of the .htaccess file here.  I doubt that's it, but we should be able to spot it immediately, if it is.Any rewrite or redirect rules could be troublesome.Jack

I have several .htaccess files. One in each of the following directories:/var/www/include//var/www/api//var/www/pages/There are 3 located within subdirectories of/usr/share/phpmyadminMy assumption is .htaccess within /var/www/pages ?? The contents are listed below:<IfModule mod_rewrite.c>RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_URI} (.*/pages)RewriteRule ^(.*)$ %1/index.php/$1 </IfModule>My limited experience with .htaccess in the past was always located in either a httpdocs or htdocs directory, neither of which exist on this webserver.

I'm not worried about anything under /usr/share/phpmyadmin, but what about/var/www/include//var/www/api//var/www/pages/Does osTicket live anywhere in or beneath any of those directories?  If there's not a .htaccess file in the osTicket directory or one of its parent directories, that's not the issue.Jack

I just answered my own question. Your osTicket is apparently in /var/www, and those are osTicket subdirectories.  Your .htacess looked fine, so I compared it with mine. They're identical.It is possible that your web server is set in such a way that it does not allow overrides in the .htaccess files.  That would definitely break the rewriting that must happen in order to locate your pages.  Are you self-hosted, or do you have a provider?Jack

We are self-hosted. Should I change read/write properties of .htaccess? Seems dangerous, but I can change it back once the page is created.

No, they're normally fine right out of the box.  I think you may have misunderstood my statement, "It is possible that your web server is set in such a way that it does not allow overrides in the .htaccess files."  I didn't say "overwrites". There's an Apache directive "AllowOverride" in the main web server configuration files (I'm assuming Apache here, and we should have established that earlier).  If the AllowOverride directive is set in the default web server config to "none", then your .htaccess files are completely ignored.Jack 

Dumb question here, but when you created these pages, did you select "enabled"?  I just created a test page with a hyphen in the URL, and it worked fine.Jack

You can ignore my last question.  The more I look at this, the more it looks like your .htaccess file is being ignored.  I'm pretty sure this is a web config issue.To understand it, you need to understand1. The overall default httpd server configuration2. The configuration for this particular virtual host, if different.Apache config files can be scattered in different directories, and without knowing your setup, I can't tell you which ones.Jack

Yes it is Apache 2.2.22 and yes the page is enabled. I'll get with our SysAdmin and see about our web configuration. This ticket I think has expanded beyond that of an osTicket issue. I truly appreciate your time and effort into looking more into this @[deleted]I may explore using an existing page (Offline, for example) as an alternative as we have never had a use for that page. It appears I can just make a backup copy of it, and switch between the default and my custom should I need to use the Offline page.

Write a Reply...