I have a few urls set up like this within zenphoto eg
http://www.mydomain.com/zen/index.php?p=credithttp://www.mydomain.com/zen/index.php?p=aboutdoes 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!!?
Comments
`
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
`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.
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
I misread the intructions and ended up overwriting the delivered htaccess with a one line one of my document root! Cheers for the help!
```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
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!!?