<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged existing</title>
<link>https://www.question2answer.org/qa/tag/existing</link>
<description>Powered by Question2Answer</description>
<item>
<title>Can I add this to an existing site as index.php</title>
<link>https://www.question2answer.org/qa/14464/can-i-add-this-to-an-existing-site-as-index-php</link>
<description>

&lt;p&gt;
	&lt;span style=&quot;font-size:12px;&quot;&gt;I've got an existing website, that's been up for over 10 years, and it has 1000's of pages. Can I swap out my current index.php and still have the rest of my site run correctly?&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-size:12px;&quot;&gt;I'd like to run this as the main index page, not as a subdirectory, but I'm worried about trying to implement the .htaccess in this format: &lt;span style=&quot;font-size:14px;&quot;&gt;&lt;small&gt;/123/why-do-birds-sing (requires &lt;a href=&quot;../htaccess.php&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;htaccess&lt;/a&gt; file)&lt;/small&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	DirectoryIndex index.php
&lt;br&gt;
	&amp;lt;IfModule mod_rewrite.c&amp;gt;
&lt;br&gt;
	RewriteEngine On
&lt;br&gt;
	#RewriteBase /
&lt;br&gt;
	RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
&lt;br&gt;
	RewriteRule . %1/%2 [R=301,L]
&lt;br&gt;
	RewriteCond %{REQUEST_FILENAME} !-f
&lt;br&gt;
	RewriteCond %{REQUEST_FILENAME} !-d
&lt;br&gt;
	RewriteRule ^.*$ index.php?qa-rewrite=$0&amp;amp;%{QUERY_STRING} [L]
&lt;br&gt;
	&amp;lt;/IfModule&amp;gt;
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-size:14px;&quot;&gt;&lt;small&gt;If I do this, will the .htaccess file try to &lt;/small&gt;&lt;/span&gt;rewrite my old urls?&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/14464/can-i-add-this-to-an-existing-site-as-index-php</guid>
<pubDate>Mon, 23 Apr 2012 16:13:46 +0000</pubDate>
</item>
</channel>
</rss>