Pages (2): 1 2   
Member
Member
MikeMcCormac   04-09-2009, 19:29
#1

Hi

I'm a newbie, so if this is a silly question, I apologise!

I've set up Zenphoto and Zenpage with the default Zenpage theme. It all worked brilliantly and I was delighted.

I then moved the location of all of it on my host, and now Zenpage isn't working. It' generating urls for pages and news that can't be found.

Any ideas what I've broken?

Thanks

Mike

Member
Member
sbillard   04-09-2009, 23:21
#2

Most likely it is mod_rewrite that is not working. If you did not re-run setup after moving, you must do so. Also try turning off the Zenphoto mod_rewrite option.

Member
Member
MikeMcCormac   05-09-2009, 07:47
#3

Hi

Thanks for the swift reply - really appreciated!

Yes I re-ran setup after moving (by the way the tutorial is very helpful). Zenphoto works just fine, its Zenpage that doesn't.

Tried turning off the mod_rewrite option. That's changed the url its looking for, but it's still not finding anything.

Is there an equivalent 'setup' to run for Zenpage?

Mike

Member
Member
MikeMcCormac   05-09-2009, 07:50
#4

As a further thought, the url it's trying to find for a News item is 'http://www.mikemccormac.co.uk/zenphoto/index.php?p='.

Does that help in any way?

Thanks again

Mike

Administrator
Administrator
acrylian   05-09-2009, 09:03
#5

That is weird. It should be "p=news". Please check the Zenpage plugin option if maybe the field for the news page name is empty somehow.

Member
Member
MikeMcCormac   05-09-2009, 09:32
#6

Hi

Checked that, and both news page name and pages page name were blank, so I made them news.php and pages.php.

It's still not opening either News or Pages - though the url looks a bit more promising. It's now http://www.mikemccormac.co.uk/zenphoto/index.php?p=pages.php&title=Searching-this-site for a page called 'Searching this site'.

In the text it describes changing the .htaccess file. If its any help, the text in mine as it relates to Zenpage is:

Rewrite additions for zenpage


RewriteRule ^pages/?$      index.php?p=pages [L,QSA]

RewriteRule ^pages/(.)/?$ index.php?p=pages&title=$1 [L,QSA]
RewriteRule ^news/?$ index.php?p=news [L,QSA]
RewriteRule ^news/([0-9]+)/?$ index.php?p=news&page=$1 [L,QSA]
RewriteRule ^news/category/(.
)/([0-9]+)/?$ index.php?p=news&category=$1&page=$2 [L,QSA]
RewriteRule ^news/category/(.)/?$ index.php?p=news&category=$1 [L,QSA]
RewriteRule ^news/archive/(.
)/([0-9]+)/?$ index.php?p=news&date=$1&page=$2 [L,QSA]
RewriteRule ^news/archive/(.)/?$ index.php?p=news&date=$1 [L,QSA]
RewriteRule ^news/(.
)/?$ index.php?p=news&title=$1 [L,QSA]

Thanks again

Mike

Administrator
Administrator
acrylian   05-09-2009, 12:09
#7

Don't enter the ".php" suffix on that option It's p=news not p=news.php (same for pages of course). I see the comment on the option should probably mention that clearly.

Member
Member
MikeMcCormac   05-09-2009, 12:21
#8

Thanks Acrylian - that's worked and its brilliant. Thank you so much for your help!

Mike

Member
Member
slaattnes   08-03-2011, 20:02
#9

Is the option for naming the pages page and news page in the zenpage plugin tab removed in the latest builds? I can't find the fields anywhere. (It's for changing news.php and pages.php to my native language)

Edit: I read that this function is removed after 1.4. Why was it removed anyway? I thought it was a nice option for language implementing. Any way to force the name change by editing any of the core files? Or would I have to edit practically all of them? Sounds like a bad idea but I would like to try because a lot of links is broken now.

Member
Member
slaattnes   08-03-2011, 21:01
#10

For others with the same need: It's simpler to add rewrite rules in .htaccess:

RewriteRule ^index.php?p=tekster&title=(.)$ index.php?p=news&title=$1
RewriteRule ^tekster/(.
)$ index.php?p=news&title=$1

"tekster" is the name given to news.php earlier.

Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.