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

Show other image with .htaccess

 
   Web Hosting Problem Solving Community! (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" schreef in bericht

 > 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:   
   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 ]