Centova Technologies Forum

Centova Cast v2 => Technical discussion => Topic started by: bithost on March 25, 2010, 11:03:33 pm

Title: change url of start page
Post by: bithost on March 25, 2010, 11:03:33 pm
Hello

well, the title explains by itself, i would like to change the start page from http://mydomain.com/start/customer to something else like a subdomain, like http://customer.mydomain.com.

I know its about apache and , thing is that in the customer folder there is just an .htaccess with rewrite rultes, which points to the start.php (which is enconded btw).

So i have a subdomain but i can't point it to the start page.

Any help? idea?

Thanks in advance.


Title:
Post by: bithost on April 12, 2010, 05:00:37 am
it seems this is not easy :/ if i find a solution i will post it here.
Title:
Post by: Centova Technologies on April 20, 2010, 11:21:16 am
Honestly I'm not sure whether this can be done.  You would need to somehow (perhaps using mod_rewrite?) manipulate the request so that the REQUEST_URI remains set as /start/username/ when the request is passed to start.php.  

If you can accomplish that from an alternate URI, perhaps using mod_rewrite as I suggested, then it should be do-able.  An alternative might be to create a PHP script that wraps start.php (via an include() or similar) and explicitly forces $_SERVER['REQUEST_URI'] to '/start/username' before the include() call.  Then you could put the wrapper script wherever you want.  I haven't tested either approach, just throwing out ideas, but hopefully that'll point you in the right direction. :)
Title:
Post by: François Houlbrèque on September 15, 2010, 08:24:17 pm
Hi there,

Old topic but running into the same issue.

I made what you suggest, as I included the start.php into my index.php on my base directory : live.rsp.fm

Still replacing URI then you may see it still show /cast/start/rsp_fm directory which I would like to hide.

If you still have an idea how I can perform that.

Kind regards.

François Houlbrèque
Title:
Post by: Centova - Steve B. on September 22, 2010, 11:26:33 am
As I mentioned I'm not sure it's possible at all in v2... there may be a mod_rewrite hack that could do it but if so I'm not aware of it.

I can tell you, though that it's possible in the upcoming v3 release.