Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Don't show complete url

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  Multiple sites, single application  
Author Message
Robert

External


Since: Apr 16, 2005
Posts: 6



(Msg. 1) Posted: Sat May 07, 2005 3:39 pm
Post subject: Don't show complete url
Archived from groups: alt>apache>configuration (more info?)

I wonder if it's possible hide the complete url and only show a part of it.
e.g. i'd like to show only www.mydomain.com/webmail/ for the complete url
www.mydomain.com/webmail/src/login.php.
Is this possible using an Alias directive....i tried but it won't work.

Regards,

Robert

 >> Stay informed about: Don't show complete url 
Back to top
Login to vote
andy

External


Since: Jul 31, 2003
Posts: 10



(Msg. 2) Posted: Sat May 07, 2005 3:39 pm
Post subject: Re: Don't show complete url [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <8a3e6$427cc599$513b49d4$986@news.versatel.nl>,
"Robert" <Robert.RemoveThis@nospam.notvalid> wrote:

 > I wonder if it's possible hide the complete url and only show a part of it.
 > e.g. i'd like to show only <a style='text-decoration: underline;' href="http://www.mydomain.com/webmail/" target="_blank">www.mydomain.com/webmail/</a> for the complete url
<font color=purple> > <a style='text-decoration: underline;' href="http://www.mydomain.com/webmail/src/login.php.</font" target="_blank">www.mydomain.com/webmail/src/login.php.</font</a>>
 > Is this possible using an Alias directive....i tried but it won't work.
 >
 > Regards,
 >
 > Robert
 >
 >

This is what I have in my srm.conf file for webmail:

### Begin - Added by openwebmail installer ###
Alias /openwebmail /home/openwebmail/data/openwebmail
Alias /webmail /home/openwebmail/data/openwebmail
ScriptAlias /openwebmail-cgi /home/openwebmail/cgi-bin/openwebmail
<Directory /home/openwebmail/cgi-bin/openwebmail>
AllowOverride All
</Directory>
### End - Added by openwebmail installer ###


Does that help?

--
Andy Jacobs
<a style='text-decoration: underline;' href="http://www.redcatmedia.net" target="_blank">www.redcatmedia.net</a>
Intelligent Websites For Intelligent Business People<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Don't show complete url 
Back to top
Login to vote
Robert

External


Since: Apr 16, 2005
Posts: 6



(Msg. 3) Posted: Sat May 07, 2005 4:13 pm
Post subject: Re: Don't show complete url [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Andy,

This is wat i have in my httpd.conf

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Alias /webmail "/usr/local/www/data/webmail"

<Directory "/usr/local/www/data/webmail">
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
AllowOverride None
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

This works fine for www.mydomain.com/webmail/ but still shows the complete
url www.mydomain.com/webmail/src/login.php.

Robert
 >> Stay informed about: Don't show complete url 
Back to top
Login to vote
Mark

External


Since: Apr 04, 2005
Posts: 4



(Msg. 4) Posted: Sat May 07, 2005 4:50 pm
Post subject: Re: Don't show complete url [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Robert wrote:
 > Andy,
 >
 > This is wat i have in my httpd.conf
 >
 > = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
 > Alias /webmail "/usr/local/www/data/webmail"
 >
 > <Directory "/usr/local/www/data/webmail">
 > RewriteEngine On
 > RewriteCond %{HTTPS} off
 > RewriteRule (.*) <a style='text-decoration: underline;' href="https://%" target="_blank">https://%</a>{HTTP_HOST}%{REQUEST_URI}
 > AllowOverride None
 > Options FollowSymLinks
 > Order allow,deny
 > Allow from all
 > </Directory>
 > = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
 >
 > This works fine for <a style='text-decoration: underline;' href="http://www.mydomain.com/webmail/" target="_blank">www.mydomain.com/webmail/</a> but still shows the complete
<font color=purple> > url <a style='text-decoration: underline;' href="http://www.mydomain.com/webmail/src/login.php.</font" target="_blank">www.mydomain.com/webmail/src/login.php.</font</a>>
 >
 > Robert
 >
 >

You could cloak inside a html frame. Not an Apache solution but it may
do what you're after...

<html>
<head>
<title>Webmail</title>
</head>
<FRAMESET ROWS="*" FRAMEBORDER="NO" FRAMESPACING="0" BORDER="0">
<FRAME SRC="http://www.mydomain.com/webmail/src/login.php" NAME="top"
scrolling="yes" marginheight="0">
</frameset>
</html>

--Mark.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Don't show complete url 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
mod_dav tutorial for complete and utter idiots? - I've been trying to get mod_dav to work and all of the help I've found online is lacking answers to basic questions. I'm sure this points to a misunderstanding on my behalf which is fine, I gotta learn it. But I'd like to find some information that....

can't get symlinks to show up correctly - I'm running a fresh, vanilla install of Apache on Openbsd OpenBSD foo.mydomain.com 3.3 GENERIC#44 i386 Apache is running and I can see the install welcome page. From what I've read in the documentation the following (default) settings in httpd.conf..

Show other image with .htaccess - Hi, if got a Online WYSIWYG Editor in a Subdirectory and if i add pictures it tries to load them from its directory. so i tried to catch its calling by rewriting the uri. original: /name1/admin/editor/dialog/images/.* should be: /name1/images/.* i..

Show Index of /usr/share/doc/packages - Hello, want to read the documents in /usr/share/doc/packages like in /srv/www/htdocs/manual shown as an index of /manual resp. index of /packages. SuSE Linux 8.1 Apache Server 1.3.26 In http.conf are the following entries: Alias /manual/..

Show Index of /usr/share/doc/packages - Hello, want to read the documents in /usr/share/doc/packages like in /srv/www/htdocs/manual shown as an index of /manual resp. index of /packages. SuSE Linux 8.1 Apache Server 1.3.26 In http.conf are the following entries: Alias "/manual/&q...
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]