tabarnew Posted October 24, 2010 Posted October 24, 2010 Hi everyone, when people come to my site they have to goto catalog/index.php how to i get it so the catalog is the homepage of the whole site :) please help
germ Posted October 24, 2010 Posted October 24, 2010 If you're still working on the skateboard site there is something you need to know... Visit the link below: How to Secure Your Site Pay close attention to "SECURING THE ADMIN" - Yours is vulnerable. It's easier to do a few security fixes now than to clean up a hacked store later. And if you don't secure the admin your shop will be hacked. It's just a question of when... :o If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
tabarnew Posted October 24, 2010 Author Posted October 24, 2010 If you're still working on the skateboard site there is something you need to know... Visit the link below: How to Secure Your Site Pay close attention to "SECURING THE ADMIN" - Yours is vulnerable. It's easier to do a few security fixes now than to clean up a hacked store later. And if you don't secure the admin your shop will be hacked. It's just a question of when... :o Hiii! oh that was just a demo store! oh deary... is that still viewable :S!... any chance you can advise me on my current issue and ill get straight to securing my new site aswell! xx
MrPhil Posted October 24, 2010 Posted October 24, 2010 Securing your site is a separate issue. As for the "catalog" bit, the best solution is to leave your store in /catalog, and use "URL rewriting" to take visitors to / and send them to /catalog. This is done with lines in your .htaccess file, if you're on an Apache server. If you're on IIS (Windows only), it can be done, but I don't know the specifics. /.htaccess RewriteEngine On RewriteCond %{REQUEST_URI} !^/catalog [NC] RewriteRule ^(.*)$ /catalog/$1 [L] The lack of a "301" code (and the lack of http: in the URL) should make this invisible to visitors. If your configure.php files have /catalog/ in them, that will show up in links, and might be confusing to users, so you could (if you want) change the configure.php entries to make the store appear as if it's in /. If you leave the /catalog/ entries (which I would recommend), search engines will catalog that in the page URLs, and so won't change when and if you restructure as below. The advantage to leaving the store in /catalog is that you're keeping it out of the site root files (.htaccess, error documents, favicon.ico, robots.txt, etc.), which keeps things neater, and allows you to add other applications to your site in the future (a gallery, blog, forum, second store, etc.) without them stepping all over each other. You would remove the .htaccess redirection and add a "landing page" to introduce your site and provide links to the store, etc.
tabarnew Posted October 24, 2010 Author Posted October 24, 2010 Brilliant thank you! I do not have a .htaccess file in my root directory.. what other coding would i need to put into the .htaccess if i made a new one?
MrPhil Posted October 24, 2010 Posted October 24, 2010 If you are on a Windows+IIS server, you won't have an .htaccess. I can't tell you the equivalent function on that server. If you are on an Apache server (Linux or some Windows boxes), there is usually already an .htaccess there. It may be "hidden" because it has a name beginning with a period. Check your FTP or host file manager instructions to see if you have to explicitly tell it to show hidden "dot" files. Anyway, if you try creating a new .htaccess file and there's already one there, you should get a warning. You just don't want to overwrite an existing .htaccess (which might have some valuable content in it) -- you want to add the lines I gave to it. If the existing .htaccess is truly empty or does not exist, the lines I gave are all you'll need.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.