Member
Member
soundiver   2015-11-08, 11:15
#1

Hello, I've upgraded my online site from 1.4.1.6 to 1.4.9.

Now I have problem with navigation: from menu, if I click a link to custom page (zenpage) I Got "file not found".
Example URL: http://my.examplesite.ext/zenphoto/page/gallery

But if I visit my local site everything is ok, navigation works fine.

The mod rewrite is checked
The .htacces file seems good..

htaccess file version 1.4.5;


Rewrite rules are now handled by PHP code


See the file "zenphoto-rewrite.txt" for the actual rules



These rules redirect everything not directly accessing a file to the Zenphoto index.php script



IndexIgnore *

RewriteEngine On

RewriteBase /zenphoto

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]

RewriteRule ^.*/?$ index.php [L,QSA]

Thank you

Administrator
Administrator
acrylian   2015-11-08, 12:03
#2

Which theme? Does a theme file gallery.php exist? Is Zenphoto installed in the folder zenphoto?

Member
Member
soundiver   2015-11-08, 12:11
#3

Thank you for your quick answer!

The theme is Zenpage.

On server, Zenphoto is installed in the "zenphoto" folder.

In local, Zenphoto is installed under http://localhost/ZENPHOTO1.4.9/zenphoto/ but on the server I have do setup and update htaccess has not "ZENPHOTO1.4.9"

Member
Member
soundiver   2015-11-08, 12:15
#4

...and, yes, a theme file gallery.php exist.

Member
Member
soundiver   2015-11-08, 12:17
#5

same problem with other links (from main menu) such as "http://my.examplesite.ext/zenphoto/category/ARTICLES/"

Administrator
Administrator
fretzl   2015-11-08, 12:59
#6

Really don't know what is going on there but you could try to delete the .htaccess file and run setup again.

Member
Member
soundiver   2015-11-08, 15:18
#7

I have deleted the .htaccess and then run setup again.

During setup I click on "Make setup create the file" (htaccess) button and then the page reloads, but still showing the "Make setup create the file" button and no htaccess file was created.

Member
Member
soundiver   2015-11-08, 15:24
#8

(just for info: there is another setup warning: "Setup could not create a robots.txt file")

Administrator
Administrator
acrylian   2015-11-08, 15:44
#9

If Zenphoto is installed in the folder zenphoto the rewrite base should be /zenphoto as you mentioned above it is. If that is and it is not working your real server either does not support modrewrite or you didn't enable the option on the backend. Or something else.

You should review your server error log, possibly permisions issues.

Member
Member
soundiver   2015-11-08, 18:29
#10

In the admin panel I've enabled the "mod rewrite" check box.
But now I saw this alert "Setup did not detect a working mod_rewrite facility."

In the Apache httpd.conf file the rewrite_module is loaded, but I will test if is really enabled.

Thank you

Member
Member
soundiver   2015-11-08, 19:16
#11

In the Apache config I have changed AllowOverride None to AllowOverride All inside the DocumentRoot Directory Directive, and now it works!!

thank you

Administrator
Administrator
acrylian   2015-11-08, 19:41
#12

All right, good you worked it out!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.