In have tried these settings in the httpd.conf file, but it doesn't work. Does anybody know how it shold be written?
ServerName www.mysite.se
ProxyPass /wps http://wcmlab.esx.company.se:10040/wps
ProxyPass / http://wcmlab.esx.company.se:10040/wps/wcm/connect/lib/site/home/
RewriteEngine ON
RewriteLog logs/rewrite
RewriteLogLevel 9
RewriteRule ^(.*)/wps/wcm/connect/(.*)$ $1/$2 [R,L]
I have stolen the code from these 2 threads:
https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14078252�
http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14225616
Proxying is kind of an extreme measure, and you don't want to redirect
anything.
Secondly, usually when people talk about "removing" something from a URL
they want to take the modified URL on input and make it look like the
original URL internally -- not continue to accept the full URL and then
translate it into a shortened version. This is because the server knows
only how to respond to the long version.
Unfortunately, rewrite won't fix up redirects to /wps/.... Are you only
worried only about some homepage and not subsequent pages showing up as
/wps/... in the URL?
No matter what you do, if you remove that prefix that doesn't leak out
back to the client you're probably opening a can of worms with all the
relative references also needing cleanup.
--
Eric Covener
- Sunit
"Tobias123" <tobias...@atea.com> wrote in message
news:2033290879.1255351037257.JavaMail.wassrvr@ltsgwas010...