Looking at httpd.conf , I think the problem is that you are using C:/xampp/htdocs/CMS as the document root, but in the httpd.conf file DocumentRoot is defined as C:/xampp/htdocs
So, if your .htaccess file is located in C:/xampp/htdocs/CMS , which is not your actual document root, when you go to http://localhost/sometext , nothing happens because it reads from C:/xampp/htdocs and maybe there are only default files or nothing, so thatβs probably why you got the xampp home page.
So you should just delete this code altogether
<Directory "C:/xampp/htdocs/CMS"> Options All AllowOverride All Order allow,deny Allow from all </Directory>
And just update the existing DocumentRoot and Directory directives in httpd.conf already and add the CMS directory as the root of your document. As shown below from part of your httpd.conf file. Then restart apache.
DocumentRoot "C:/xampp/htdocs/CMS" <Directory "C:/xampp/htdocs/CMS"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
Let me know if this helps.
Edit: based on your comment, it is better if you use VirtualHosts, if you want several sites. Here are some links to get you started. It is very easy to do.
http://foundationphp.com/tutorials/apache_vhosts.php
https://www.youtube.com/watch?v=0k2GxFQcP_c
source share