Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
thebirdman
thebirdman
Ready to open site, all files were setup in a /sub directory.
what files will need to be copied to main "mysite.ca"
so the index.php file will be displayed and work correctly?
Tried moving index.php but no luck..
tk x in advance
 
jty (Guest)
jty (Guest)
You should be able to move/copy the whole subdirectory's files to your domain root. Don't understand why your index file can't be copied
 
Another option is to set up a 301 re-direct. I think it's 301, it's a redirect that is done in your .htaccess file which will redirect your site from mysite.ca to mysite.ca/subdirectory
 
thebirdman
thebirdman
tkx for the reply jty........
Files are sitting in "mysite.ca/viartshop"
But dont want to advertise the site as mysite.ca/viartshop
Tried too just copy the index.php to the "root" but It did not load the site.....So other files must be needed.
 
Don't want to have to copy the entire viart program into root...will make a total mess of it.....thats why it was setup in the sub...know i seen a post somewhere here on it
but the search returns nut'n
 
jty (Guest)
jty (Guest)
OIC what you are trying to achieve now
Yes, copying the whole thing into the root is a big mess
 
Copying index.php only to the root won't work. I had a quick look and right up the top is hard coded paths for the various include files. Something would need to be done about that or you would get missing file error or something like that, I expect.
 
I have my whole cart in a subdir like you and I use a Redirect 301 in the htaccess file to redirect the root index file to the subdir Viart index file
 
I don't know if this is a good option or not. I am not techie. I am still learning. I like your idea better
 
thebirdman
thebirdman
errors yup pages of them :()
 
Was able to take an old index.html file, paste it in the root, with a "enter" hyperlink..and that worked,.....
but messed up the "appearence of the site" want to keep it all the same....main page was different from viarts pages...which is no deal in the long run...as soon i can get a hold of what they are trying to do,and obtain the ability to doit "as others have" will be able to change what I need and make the site consistant....
But for now, just want a user to be able to access the website with the files all sitting in the sub folder...
 
Let me know "instruct-me" on what you did...will work for me at this time in learning... put here or email me...
thebirdman@rogers.com
 
Going to play with trying to import the php file and save as a htm html with the changes
Just a thought....no i saw the easy answer here somewhere...
 
tw (Guest)
tw (Guest)
you just need to move all folders and files to the root folder. And remember to move the /includes folder in binary mode.
 
When I moved my cart from subdirectory to root, I had to manually change image path in header.html and footer.html to root. So, in case some images or links do not work, check their paths first.
 
jty (Guest)
jty (Guest)
tw, birdman doesn't want all the files in the root cuz they create a mess. He only wants the index file in the rot to keep things looking tidy
 
Birdman, I left all the files in the subdir including the index file
I then inserted the following into the .htaccess file
 
Redirect 301 /index.htm http://www.xxxxx.com/store/
Redirect 301 /index.html http://www.xxxxx.com/store
Redirect 301 /index.php http://www.xxxxxx.com/store/
 
This means redirect any calls to index.htm or index.html or index.php to the store directory
 
"but messed up the "appearence of the site"
 
This might be because the link to the css file in the index file is incorrect. Look at the header of the index file and is it pointing to the correct location of the css file?
 
I haven't got time to work it out anymore but one thing I was going to consider was to do as you did ie put the index file in the root but edit the index file includes to correct the directory
eg Up top of the index.php, I was going to change
include_once("./includes/common.php");
to
include_once("../store/includes/common.php");
or something like that
Do the same for the other includes
 
If you're brave, try that out. Remember to keep a backup of the file before making changes
 
If you works, can you post back here please
 
jty (Guest)
jty (Guest)
"If you works, can you post back here please"
Typo but you know what I mean :)
 
"When I moved my cart from subdirectory to root, I had to manually change image path in header.html and footer.html to root. So, in case some images or links do not work, check their paths first."
 
yep, I agree with tw, it has to do with the paths not being set correctly.