<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged mvc</title>
<link>https://www.question2answer.org/qa/tag/mvc</link>
<description>Powered by Question2Answer</description>
<item>
<title>Get any address from subdomains with .htaccess</title>
<link>https://www.question2answer.org/qa/32056/get-any-address-from-subdomains-with-htaccess</link>
<description>

&lt;div&gt;
	I want to get any urls from subdomains to root (mvc boot)&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	I use from this code for root folders:&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; RewriteCond %{REQUEST_FILENAME} !-d&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; RewriteCond %{REQUEST_FILENAME} !-f&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; RewriteCond %{REQUEST_FILENAME} !-l&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; RewriteRule ^(.*)$ boot.php?url=$1 [L]&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; #this code good working ...&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	But for subdomain, how do I get files that do not exist?&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; #The following code is worked,but not get 404 folders Or files(!-d,!-f,!-l)&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; RewriteCond %{HTTP_HOST} &amp;nbsp;^mySubDomain.domain.com [OR]&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; RewriteRule ^(.*)$ /../boot.php?url=$1 [L]&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	---&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	How can I add:&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; RewriteCond %{REQUEST_FILENAME} !-d&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; RewriteCond %{REQUEST_FILENAME} !-f&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp; &amp;nbsp; RewriteCond %{REQUEST_FILENAME} !-l&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	to this code?&lt;/div&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/32056/get-any-address-from-subdomains-with-htaccess</guid>
<pubDate>Wed, 19 Feb 2014 01:36:32 +0000</pubDate>
</item>
<item>
<title>Why not  Q&amp;A  base on the Model-View-Controller development pattern?</title>
<link>https://www.question2answer.org/qa/4909/why-not-q%26a-base-model-view-controller-development-pattern</link>
<description>MVC is a software approach that separates application logic from presentation. It Can make the Q&amp;amp;A maintenance easier.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/4909/why-not-q%26a-base-model-view-controller-development-pattern</guid>
<pubDate>Tue, 01 Mar 2011 04:20:08 +0000</pubDate>
</item>
</channel>
</rss>