So I bought a shared hosting package on HG and tried to transfer my blog from local to the server, but it didn't work right, and since it isn't anything big, I decided to install the blog clean via Fantastico and start from scratch.
Now, I have few questions
1) I can't find the htaccess file. All I want to do is to make the damn address show the "www" everytime, because now it takes away www from the address bar on my site.
I found a piece of code that supposedly does that;
Question is;
- is it enough just to save the above code in notepad as .htaccess and just upload it?
And question #2 which is also tied to the question above...
I have 2 folders in my root that have the blog files
public_html and www
Which one should I use for uploading stuff to my blog etc?
Thanks for the help guys
Now, I have few questions
1) I can't find the htaccess file. All I want to do is to make the damn address show the "www" everytime, because now it takes away www from the address bar on my site.
I found a piece of code that supposedly does that;
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.yourdomain.com$
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301]
Question is;
- is it enough just to save the above code in notepad as .htaccess and just upload it?
And question #2 which is also tied to the question above...
I have 2 folders in my root that have the blog files
public_html and www
Which one should I use for uploading stuff to my blog etc?
Thanks for the help guys