Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Show other image with .htaccess

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  script for funny custom error messages  
Author Message
bastiang

External


Since: May 16, 2004
Posts: 3



(Msg. 1) Posted: Mon May 17, 2004 2:38 am
Post subject: Show other image with .htaccess
Archived from groups: alt>apache>configuration (more info?)

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 tried the following statement in my .htaccess

RewriteCond %{REQUEST_URI} ^/name1/admin/editor/dialog/images/(.*)$
RewriteRule /name1/admin/editor/dialog/images/(.*) /name1/images/$1


any idea why it doesnt match a bit?


regards, bastian

using: apache 1.3.26 and mod_rewrite enabled

 >> Stay informed about: Show other image with .htaccess 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 2) Posted: Mon May 17, 2004 4:53 am
Post subject: Re: Show other image with .htaccess [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Bastian Gorke" <bastiang.DeleteThis@yahoo.com> schreef in bericht
news:c88n3j$m86$03$1@news.t-online.com...
 > 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 tried the following statement in my .htaccess
 > RewriteCond %{REQUEST_URI} ^/name1/admin/editor/dialog/images/(.*)$
 > RewriteRule /name1/admin/editor/dialog/images/(.*) /name1/images/$1
 > any idea why it doesnt match a bit?
In .htaccess it only matches from the folder it is in downwards.
Try your luck with .htaccess in folder name1
and remove /name1/ from the regex.

If your folder name1 is not physically below document_root, you're in for
RewriteBase too.

HansH<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Show other image with .htaccess 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
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..

Apache+SSL+IE. IE wont show SSL-Page - Hi! I got some Problems with my Apache. At the moment we are Runing a Apache 2.0.48 with mod_ssl. The certificat is finaly installed and all ist working fine... but not on Internet Explorers. Opera, Mozilla and FireFox are displaying the Pages..

[2.0.47] Show access-restricted directories - Hi, following situation at DocumentRoot: / /foo/ /bar/ /file.c If I make "/foo" only accessible via ModAuth or restrict access via allow/deny, Apache 2.x hides the directory "foo" if I visit "/" and have a directory list...

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...

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/..
   Web Hosting and Web Master Forums (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 ]