tags:

views:

54

answers:

1

I am using the Zend Framework and have setup a MVC application, so my site's URL is like: domain.com/module-name/controller-name/action-name/?other=stuff

Now I'm trying to make it so that you can access this through: module-name.domain.com/controller-name/action-name/?other=stuff

The key is also that it shouldn't redirect, I want the user to see the same domain "module-name.domain.com" while its serving stuff from domain.com/module-name/controller-name/action-name/?other=stuff

My aim is to allow my users to use there own domains pointing to my application. e.g. clientone.com clienttwo.com sub.clientthree.com They would setup their DNS with: dns1.myapplication.com dns2.myapplication.com

but their domain's will remain the same i.e. clientone.com, while its actually from myapplication.com...

My zend application then checks the server name to serve different content per client.

Not very sure how to mod my current htaccess rules:

Set application environment

SetEnv APPLICATION_ENVIRONMENT development

Set rewrite engine

RewriteEngine On

Set rewrite conditions

RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d

Set rewrite rules

RewriteRule ^.$ - [NC,L] RewriteRule ^.$ index.php [NC,L]

A: 

hi, please in nead help for my httaccess file: My subdomain : http://dzscripts.cyber-bladi.com

works fine in my local host, but does not in my remote server. I think that the problem is in my httaccess file, and because I am in a subdomain. Please help!

that is the content of the file :

ErrorDocument 404 /

RewriteEngine on

index.php

RewriteRule ^([0-9]+)-(.).html$ listcategory.php?catid=$1&catname=$2 [L,NC] RewriteRule ^([0-9]+)-(.)-page-([0-9]+)/$ listcategory.php?catid=$1&catname=$2&page=$3 [L,NC]

RewriteRule ^([0-9]+)/(.*).html$ details.php?id=$1&title=$2 [L,NC]

RewriteRule ^([A-Z]+)/page-([0-9]*)/$ index.php?letter=$1&page=$2 [L,NC]

boys.php

RewriteRule ^boys/([A-Z]+)/$ boys.php?letter=$1 [L,NC]

RewriteRule ^boys/([A-Z]+)/page-([0-9]*)/$ boys.php?letter=$1&page=$2 [L,NC]

girls.php

RewriteRule ^girls/([A-Z]+)/$ boys.php?letter=$1 [L,NC]

RewriteRule ^girls/([A-Z]+)/page-([0-9]*)/$ boys.php?letter=$1&page=$2 [L,NC]

origins.php

RewriteRule ^origins/([A-Z]+)/$ origins.php?letter=$1 [L,NC]

RewriteRule ^origins/([A-Z]+)/page-([0-9]*)/$ origins.php?letter=$1&page=$2 [L,NC]

country.php

RewriteRule ^country-origin-(.)-page-([0-9]).html$ country.php?origin=$1&page=$2 [L,NC]

RewriteRule ^country-origin-(.*).html$ country.php?origin=$1 [L,NC]

RewriteRule ^origins/([A-Z]+)/page-([0-9]*)/$ origins.php?letter=$1&page=$2 [L,NC]

means.php

RewriteRule ^([0-9]+)/(.*).html$ means.php?id=$1&names=$2 [L,NC]

RewriteRule ^([0-9]+)/(.*)$ means.php?id=$1&names=$2 [L,NC]

Options -MultiViews ErrorDocument 404 //hotscriptsclone/226969.php

stevelka
This should [be its own question](http://stackoverflow.com/questions/ask)...
Tim Stone