Member
Member
roraz   2006-08-08, 22:42
#1

I have a few urls set up like this within zenphoto eg

http://www.mydomain.com/zen/index.php?p=credit
http://www.mydomain.com/zen/index.php?p=about

does anybody know what to put in the htaccess file so that it'll make the urls like:

http://www.mydomain.com/zen/credit/
http://www.mydomain.com/zen/faq/

I tried looking through the forums search, but I couldn't find anything relevant though I think I may have been phrasing my search requests right. any help would be greatly appreciated!!?

Member
Member
Rygaard   2006-08-09, 09:57
#2

You could try the following:

`

Options +FollowSymlinks

RewriteEngine on

RewriteRule ^zen/(.+)/ index.php?p=$1 [nc]

`

Maybe you need to delete the first line - I use it depending on how my server is setup.

Code above was inspired by: http://corz.org/serv/tricks/htaccess2.php

Developer
Developer
trisweb   2006-08-10, 02:08
#3

I actually have a rule for that in the latest SVN code --

RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]

Add it to your .htaccess and they'll be accessible through /page/credit and /page/about respectively.

Member
Member
EdnaGarrett   2006-08-13, 02:04
#4

thanks!

Member
Member
biffta   2006-08-22, 13:51
#5

I am confused by Zenphoto's modrewrite facilities. Is the install/admin section supposed to create the htaccess files for us or do we have to do it all for ourself?

Developer
Developer
trisweb   2006-08-23, 19:47
#6

You have to edit the one included in the package. If you can't find it, you're probably on a mac/linux system, and it's hidden. It's in the download, you just have to find it

Also, that rewrite rule up there actually won't work... let me find the real one... ah, here:

RewriteRule ^page/([A-Za-z0-9-]+)/?$ index.php?p=$1 [L,QSA]

That should allow you to access pages by /zen/page/pagename

Member
Member
biffta   2006-08-30, 18:10
#7

If you can't find it, you're probably on a mac/linux system, and it's hidden. It's in the download, you just have to find it

I misread the intructions and ended up overwriting the delivered htaccess with a one line one of my document root! Cheers for the help!

Member
Member
Donkikong   2007-01-23, 14:28
#8

How would you change .htaccess so that
zenroot/customPage/` translates to index.php?page=customPage`

(I would like not to have to have /page/customPage).
Do you have to define each custom page?

Thanks for your help.

  • Donki
Junior Member
Junior Member
thilakraj   2009-07-20, 10:08
#9

I have a few urls set up like this
http://itweb.mydomain.com
http://roltaweb.mydomain.com
http://helpdesk.mydomain.com

does anybody know what to put in the htaccess file so that it'll make the urls like:

http://itweb
http://roltaweb
http://helpdesk

I tried looking through the forums search, but I couldn't find anything relevant though I think I may have been phrasing my search requests right. any help would be greatly appreciated!!?

Administrator
Administrator
acrylian   2009-07-20, 10:25
#10

This is not possible at all as you always need a top level domain, the ".com" in this case. This is not a Zenphoto limitation!

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