Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 



murtuzahsn

Member
  • Content count

    1
  • Donations

    $0.00 
  • Joined

  • Last visited

Community Reputation

0 Neutral

About murtuzahsn

Profile Information

  • OS
    XP Pro x64
  1. .htaccess Subdomains

    Thanks for such a great post. I have added the following line in my htaccess file: RewriteCond %{HTTP_HOST} !^www\.mywebsite\.com [NC] RewriteCond %{HTTP_HOST} ([^.]+)\.mywebsite\.com [NC] RewriteRule ^(.*)$ http://www.mywebsite.com/controller/action/%1 [L] When i give the above, the page content is showing what i was expecting, but the problem i am facing is the page URL is also getting changed. I dont want that. What should i do? Is there something in the server that needs to be done? Please suggest. I am working with CakePHP Thanks.
×