Topic: another php question

i just looked at our site on ipads and iphones and found a problem.
here's the site:

www.lookoutmountainstudios.com

the 'projections,''objects,' and 'images' pages all use the simpleviewer. things seem fine with the desktops and laptops i've checked but, with the above mentioned idevices, punching the fullscreen icon returns a 404 error that a file in the svcore folder can't be found. the file is 'full.php.' is this as simple as changing the full.html file's extension to php? the 'full.html' file does appear. i hope i don't have to remove the full screen icon because it's a nice addition to simpleviewer and works on the other devices.

thanks,
BabaG

Re: another php question

There should be no need to rename (or otherwise modify) any files within the 'svcore' folder.
Make sure that the complete 'svcore' folder (including the 'full.html' file) has been uploaded to your web server.
(Currently, if I try to access http://www.lookoutmountainstudios.com/i … /full.html directly in a browser, I am redirected to http://www.lookoutmountainstudios.com/i … e/full.php.)

Steven Speirs
SimpleViewer Support Team.

Re: another php question

thanks, steven.

i just checked and all of the svcore folders and files did, indeed,
upload. there is no full.php file among them, on my laptop
(where i built the pages) or on the server. don't know what is
asking for full.php or why. any further thoughts on how to get
past this? it seems like the only roadblock. full.html is, of
course, present. that's why i was asking about renaming.

thanks again,
BabaG

Re: another php question

Make sure that there are no rewrite rules in your .htaccess files on your web server which could be responsible for such behavior. If you run into any difficulties, your web host should hopefully be able to help you out with this.

Steven Speirs
SimpleViewer Support Team.

Re: another php question

thanks, steven.

it seems there is a redirect in the htaccess file:

RedirectMatch 301 (.*)\.html$ http://www.lookoutmountainstudios.com$1.php

this, from what i read, is a redirect from html to php. i believe the
simpleviewer files and folders are the only html files on the site.
can i change the suffix to php on these, or will that screw up the
simpleviewer? fwiw, the redirect is the only line in the htaccess file.

thanks,
BabaG

Last edited by babag (2013-01-22 23:10:25)

Re: another php question

will that screw up the simpleviewer?

Yes. SimpleViewer looks for a file named 'full.html' and if you have renamed it to 'full.php', SimpleViewer will not be able to find it.
(The code that defines the name 'full.html' is in the 'simpleviewer.js' JavaScript file which is obfuscated and cannot be modified.)

Try adding an exception to your rewrite rule for the 'full.html' file.

Steven Speirs
SimpleViewer Support Team.

Re: another php question

thanks, again, steven. any pointers on how to learn how to do that?
tutorial or examples of exceptions?

BabaG

Re: another php question

Try the following regular expression which should match and redirect all '.html' files to '.php' files except 'full.html'.

RedirectMatch 301 ^(((?!full).)*)\.html$ http://www.lookoutmountainstudios.com$1.php

For reference, the 'RedirectMatch Directive' documentation can be found here and information on the 'Apache Module mod_rewrite' can be found here.
For information on pattern matching using regular expressions, www.regular-expressions.info might be a good place to start. There are many other resources on the internet which can be found with a web search.

Steven Speirs
SimpleViewer Support Team.

Re: another php question

thanks so much, steven! that seems to have gotten things working!

BabaG
:-)