Hi,
I would like to create a test site. I created a path under the root folder (/public_html/dev). I copied all files to the dev folder and changed all path accordingly. But that does not work. I think I missed some path constants and this is a stupid idea.
Is there any smarter idea to create a test site?
Thanks,
Did you update the local.config.php?
Did you update your .htaccess?
Base /dev
I can’t see local.config.php, but config.local.php. Then Yes, I did.
.htaccess with Base /dev? Would you please explain more about the location and how to change it?
Thanks,
Tool,
I am sorry, but how to create the subdomain? What is difference between your subdomain and my subfolder?
Thanks,
open your .htaccess file
and you will see BASE.
```php
DirectoryIndex index.html index.php
RewriteEngine on
Some hostings require RewriteBase to be uncommented
Example:
Your store url is http://www.yourcompany.com/store/cart
So “RewriteBase” should be:
RewriteBase /store/cart
[COLOR=“Blue”]RewriteBase /dev[/COLOR]
RewriteCond %{REQUEST_FILENAME} !.(png|gif|ico|swf|jpe?g|js|css)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php?sef_rewrite=1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} ./catalog/.
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteRule . index.php?sef_rewrite=1 [L,QSA]
```
If you have CPanel, you can go into “Subdomains” and create it. Doing this will keep configurations separate between sites.
Thank you, Tony and Tool.
I found the .htaccess file in the cs-cart zip file, but I could not find it in the /public_html/ folder. I made all files shown, but still I cannot see it. What am I missing?
Thanks,
Apparently the .htaccess file.
Create it if it’s missing.