Fedora Linux Support Community & Resources Center
  #1  
Old 16th May 2012, 06:00 AM
bubaphex Offline
Registered User
 
Join Date: Mar 2008
Posts: 30
macosfirefox
Apache Mod Rewrite

Hi guys,

im having issues understating how [P] works in mod rewrite

i have this:

RewriteRule ^/mysubdir(.*) http://myotherwebsite.com/subdirectory$1 [P]

the rewrite doesnt seam to work, mod rewrite is install and is working find. Do i need to have something else installed? acording to php.ini mod_proxy has loaded.

im doing this in my .htaccess folder, should i be doing this in vhosts?

Thanks
Reply With Quote
  #2  
Old 16th May 2012, 08:37 AM
satanselbow Offline
Registered User
 
Join Date: Apr 2011
Location: Upminster, Essex, UK
Posts: 169
linuxchrome
Wink Re: Apache Mod Rewrite

Not wanting to assume that you have already found the relevant docs...

The proxy rewrite specific docs are at: http://httpd.apache.org/docs/2.4/rewrite/proxy.html
and then backtracking to http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html shows (in the penultimate table of examples) that what you are trying to do (or, more specifically, the syntax you are using) is not allowed...


Code:
^localpath(.*) http://thishost/otherpath$1 [P]	doesn't make sense, not supported

Might help us help you if you could expand on what exactly you are aiming to achieve
Reply With Quote
Reply

Tags
apache, mod, rewrite

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help w/ Apache Rewrite Rule C4talyst Programming & Packaging 0 20th November 2009 09:40 PM
Mod Rewrite Apache problem marcelkraan Servers & Networking 7 31st August 2008 06:09 PM
Anyone experience about Rewrite rule (mod rewrite ) in apache ? sir pratchaya Servers & Networking 2 20th September 2005 04:00 AM


Current GMT-time: 11:46 (Friday, 22-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat