Hi!
I installed zenphoto in a subdirectory called "zenphoto", which was great for setting things up and testing, but now that its time to go live, I'd like to remove the "zenphoto/" from the URL altogether, so that it appears to be in the root directory.
I thought this would be a fairly common request, but the only solution I've found to this on the forums is to move all the files into the root directory and run set up again. I'd really prefer not to have to do this!
I've tried putting this in zenphoto's .htaccess file:
`
RewriteBase /
RewriteRule ^zenphoto/(.*)$ /$1 [R=301,NC,L]
`
But it doesn't do anything. In fact, changing the "RewriteBase" line in the zenphoto .htaccess file doesn't do anything.
Is there something I'm missing? Is there a way to get this to work?
Thanks for your help!
Comments
`
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domainname\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.domainname\.com$
RewriteCond %{REQUEST_URI} !^/zenphoto/
RewriteRule (.*) /zenphoto/$1
`
allows the URLs to be accessed without "zenphoto/".
BUT the links generated by functions like printPageMenu and getGalleryIndexURL still show "zenphoto/". How can I change this?
Thanks!
most providers allow to choose the mountpoint of your domain within the webspace