How to eliminate need for second double slash in URL path?

The need to include the second double slash following "whatever.net/zenphoto/" is causing some confusion with users, and some eMail clients apparently drop the second occurrence from a mailed link, even though the displayed eMail text appears to include the second slash, as in . . .see the following:

https://archaxis.net/zenphoto//WMI-Projects/

How or where (in a config file?) can this "double slash" requirement be eliminated?

ZP version is 1.4.0.4
http server is Apache v2.2.11

Comments

  • acrylian Administrator, Developer
    Such a double slash was never part of any Zenphoto generated URL and is therefore no "requirement". So the issue lies somewhere on your server or configuration, maybe a wrong htaccess file.

    Note also that your Zenphoto version is outdated.
  • I have other applications, e.g., ZenCart, phpMyAdmin, WebCalendar, etc. installed and they do not require the double slash inclusion.

    Typical aliases in the httpd.conf file are as follows:

    Alias /zenphoto/ "/usr/local/www/zenphoto/"
    <Directory "/usr/local/www/zenphoto/">
    Options +Includes -Indexes
    AllowOverride all
    Order Deny,Allow
    Allow from all
    RewriteEngine On
    RewriteOptions Inherit
    DirectoryIndex index.php
    </Directory>

    Alias /WebCalendar-1.2.3/ "/usr/local/www/WebCalendar-1.2.3/"
    <Directory "/usr/local/www/WebCalendar-1.2.3/">
    Options +Includes +Indexes
    AllowOverride all
    Order Deny,Allow
    Allow from all
    RewriteEngine On
    RewriteOptions Inherit
    DirectoryIndex index.php
    </Directory>

    Note that these are redirections and do not reside within a registered domain hierarchy.

    Regarding the .htaccess file, in fact, I have looked at the same and it is rather complex . . .not sure what I'm looking at (. . .yet).

    Without the double slash, the ZenPhoto page displayed is "Photo Gallery | Object not found", so the ZP application does start.

    BTW, I know the ZP version is outdated. (plan to update soon)

    Thanks for your help,
    Ron W.
  • acrylian Administrator, Developer
    Again, Zenphoto does not require, use or ever has used double slashes as they are not valid in urls anyway. If you get this it is probably a unique issue to your server. Mabye a conflict with the oather tools or these redirections. Zenphoto has its own htaccess file with redirections and on that old version there are quite some of them.
  • OK, thanks again. I'll keep looking . . .and update the ZP version ASAP.
Sign In or Register to comment.