www.website.com/xxx/home -> www.website.com/home?cog=xxx

Using a single web hosting account to host multiple sites

www.website.com/xxx/home -> www.website.com/home?cog=xxx

Postby mr_bungalow » Mon Mar 12, 2007 7:59 am

We have two issues here.

the first is that we have /home aliased using mod_alias. can you use the two tools together?

The second issue is that we are using oracle behind the scenes to dish out our web pages using the mod_plsql tool. So the user currently goes to www.website.com/home and the index.html file points to a stored procedure and we use mod_rewrite for this also.

Here is our current ruleset:
Code: Select all
RewriteEngine On
RewriteCond %{REQUEST_METHOD} TRACE
RewriteRule .* - [F]

RewriteRule ^/sweb_main_window/?$ /sweb_no_auth/web_main.init_main_window? [R]
RewriteRule ^/sweb_no_auth/(web_oncall_assignment\.)(.*) /sweb_auth/$1$2 [R]
RewriteRule ^/sweb_no_auth/(web_oncall_block\.)(.*) /sweb_auth/$1$2 [R]
RewriteRule ^/sweb_no_auth/(web_oncall_member_admin\.)(.*) /sweb_auth/$1$2 [R]
RewriteRule ^/sweb_no_auth/(web_oncall_history\.)(.*) /sweb_auth/$1$2 [R]
RewriteRule ^/sweb_no_auth/(web_historical_calendar\.)(.*) /sweb_auth/$1$2 [R]
RewriteRule ^/sweb_no_auth/(web_profile\.)(.*) /sweb_auth/$1$2 [R]


We explicitly state each web_* to limit the user from accessing any other stored procedures from the website.

What I am trying to do is pass in a query variable to the site based on which /xxx the user goes to. I've been messing around with this for a few days now and haven't gotten anywhere.


Thanks in advance for any help you can give me!
mr_bungalow
 
Posts: 2
Joined: Mon Feb 26, 2007 11:00 am

Postby richardk » Mon Mar 12, 2007 2:40 pm

It should be able to work with mod_alias.
Is it in a .htaccess file? If it is replace all the "^/"s with "^".
Is it /home/sweb*? Where is the .htaccess file (if you're using one)?
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 94 guests

cron