Jump to content

Lulu

Member
  • Posts

    40
  • Joined

  • Last visited

Posts posted by Lulu

  1. Yes, you can have multiple statements in a .htaccess file. I'm assuming you have your server set up to support .htaccess files? If not, see the "How to do a 301 redirect using a Windows server" in the link.

     

    If you are wanting to redirect all visitors from anywhere on the old site to the home page of the new site, you'd use:

     

    RewriteEngine On

    RewriteRule ^(.*)$ http://newdomain.com/ [R=301]

     

    If you want to redirect all visitors who visit a page on the old site to the same page on the new site, you'd use:

     

    RewriteEngine on

    RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]

     

    With the samples above, you don't need to include the old site URL anywhere -- the server will automatically figure it out. And the .htaccess file needs to go in the root of your old domain's hosting.

     

     

    http://stackoverflow.com/questions/1945568/htaccess-redirect-all-pages-to-new-domain

     

    Hi Ben, thanks for your post. I'm not sure if the server is set up to support .htaccess files, but will check. To be honest, I didn't realise I had to do that.

     

    The old site no longer exists at all, but does appear on various articles online. Before I bought the domain name, I think clicking on the link went nowhere. I want it to go to my new site. Can I do this using one of the above statements?

  2.  

    Thanks again, Ben. I think I'm currently running on a windows server. I have an .htaccess file in place on my current website to force a refresh. Can I add to this, or are you only allowed one 'command' so to speak?

     

    If I can add to it, the link you gave suggests the following to redirect from one domain to another which is what I think I need as I want to redirect anyone finding links to the defunct site on the internet to my new site:

     

    RedirectPermanent / http://www.new-domain.com/

     

    I'm not entirely clear on how to 'word' the redirect though - where does the defunct site address go?! Sorry, this is probably very obvious and I'm missing the point!

  3. A couple things:

     

    -- You can use a 301 redirect (http://www.seomoz.org/learn-seo/redirection, which tells Google that the URL has moved permanently. As Google recrawls the site, it should update its index.

     

    -- You can also ask Google to remove specific pages or an entire website from its search results using Google Webmaster Tools (http://301redirects.net/redirect-old-domain-to-new-website.php)

     

     

    Thanks, Ben. I've had a look through the links you've given and the first option seems the best particularly (if I understand what I've just read correctly) as this method preserves the ranking on my new site rather than the defunct one. I definitely would like to redirect permanently. However, I don't quite understand what I need to do to achieve this! Can you help me?

  4. I meant you could add a class to the img with your css code. doing this with the code below, OR set the width and height to the widht and height of the img in pixels.

     

    .classofimg {
       width: 100%;
       height: 100%;
       zoom: 1;
    }
    
    <a class="fancybox" title="This is my image catpion" rel="group1" href="images/aa01.jpg"><img src="images/aa01_t.jpg" alt="" class="classofimg" /></a>
    
    

     

    Thanks, Benjamin. I'll try that out. Any thoughts on what, if anything, I need to do re the zoom function?

  5. The only thing I could think of is make sure you don't have a class on it that is being sized in the CSS. Also make sure there is no zoom in the css.

     

     

    If you can't find anything try adding a class to the image and setting the width and height to 100% or the direct size of the image.

    .classofimg {
       width: 100%;
       height: 100%;
       zoom: 1;
    }
    

     

     

    EDIT: Also make sure you are not using an id twice for an image, and if you have a class make sure it isn't also used on another image being resized.

     

    Thanks for getting back to me.

     

    I'm not 100% certain what you mean re the class question but I'll do my best to answer you. Each page has various divs and classes. I'm using Fancybox for my image galleries and their instructions are to code each image as follows:

    <a class="fancybox" title="This is my image catpion" rel="group1" href="images/aa01.jpg"><img src="images/aa01_t.jpg" alt="" /></a>

     

    I did a search a found 7 instances of 'zoom' - 1 in the Fancybox css file, 5 in the Fancybox js file, and 1 in the Spry Menu Bar css file. The Fancybox files came ready coded and I have not altered them. The Spry file 'zoom' was something I added to fix an IE6 error under guidance.

     

    I've checked all my id's and don't think I am using the same one twice, or certainly not on the same page. I have a folder of images for each page and within those, there may be repetition eg the id's aa01 and aa01_t may be in several folders, but are different images.

     

    Does that help explain the situation or do you need more information?

  6. Hi, I have created a simple website and all the images are sized using Photoshop CS4 beforehand. When viewed in Chrome and Firefox, the images all appear as they should do. When viewed in IE9, some of the images throughout the website are larger than they should be whilst others are exactly as they should be. The 'rogue' images are not confined to one page, it's generally one image out of several wich is affected.

     

    Here's what I've done to try and sort out the problem, without success:

    - checked Internet Options to make sure that Enable Automatic Resizing is not checked, which it isn't

    - checked the code and there is nothing I can see which should force certain images to resize.

    - xhecked that one or two of the affected images are correctly sized which they are. To make sure, I deleted one of them and did the work again in Photoshop. IE9 still resized the image to be 1" approx. bigger.

     

    I don't understand why the resize is only affecting certain images. Can anyone help me with this?

     

    Hope to hear from someone soon.

     

    Many thanks.

  7. As a newbie it used to bother me too but usually clearing the browsers cache and waiting a couple of minutes works fine.

     

    http://help.unc.edu/2053

     

    Also, you can look into changing the browser settings of your immediate users so their cache is cleared/deleted each time they close their web browsers and also possibly making changes to their Temporary Internet Files and History Settings.

     

    Thanks for your post and the link, linton. Do you, or anyone else, know if there is a way to refresh the whole website rather than one page at a time?

  8. I might be wrong but what I think is happening is that your browser stores pages that you have visited. So what I do when this happens to me is close the browser and reopen it. Some times this works some times it does not. I probably would not worry about it to much sense you are still building the site as it will not be a problem when you have the site done.

    Hi, and thanks for your response. The problem isn't really with me, as I know to simply refresh the page/s. However, many of the users of the site aren't very computer literate and don't really understand that you have to refresh pages. Also, you have to refresh every single page which is a nuisance.

     

    If you, or anyone else has any ideas, I'd love to hear them.

     

    Thanks again.

  9. Hi

     

    I've put together a small, simple website. However I'm still working on it. Everytime I make changes to it, I and other users who have previously viewed the website have to refresh every single page for the updates to show, particularly those affecting the navigation bar. Shouldn't 'Refresh' refresh the whole website, or have I done something wrong?

     

    If this is just the way a website normally works, can I force the website and/or individual pages to automatically refresh by using something like the pragma: no-cache tag? If I can, what are the implications - is it a question of the speed the page and images load? Are there any other considerations?

     

    If I don't do this, what else can I do to stop the situation where users have to refresh every single page?

     

    Hope to hear from someone soon!

  10. Hi linton, thanks for getting back to me, and for the links etc. Interesting idea re Adobe Bridge. I'll try it out.

     

    I posted the question on another web design forum and was advised to do whatever made sense to you, providing you weren't going to end up with a massive site.

     

    I've found some really useful stuff on youtube re layouts and stuff. Check out this guy: http://www.youtube.com/user/createthenet. Some of his projects look at image galleries and such like.

     

    Good luck with your site!

  11. Hi

     

    I am about to start adding images to my gallery pages and wanted advice as to how best structure the folders within html.

     

    I already have an 'images' folder and, from what I've read, it's probably best to have all my images in one folder. Do others agree?

     

    I was then going put the images for each gallery within a sub folder, ie

    myWebsite > images > gallery1 (gallery2, gallery3 etc). Does that sound ok, or would I better having the galleries directly under the site folder, ie:

    myWebsite > gallery1 (gallery2, gallery3 etc).

     

    I'm not sure what the implications are for the website in terms of speed of loading etc dependent on where the images are stored.

     

    Any help of advice would be really appreciated.

     

    Many thanks.

  12. Hi

     

    I've recently attempted some tidying up in Dreamweaver and moved a couple of folders around during which I received this message:

    "The cache will now be recreated because the name, root folder, HTTP address of cloaking settings of the site have been changed."

     

    I tried to close the dialogue box, but the system went ahead and recreated the cache. I now have a total 'bugger's muddle' in DW where one of the folders I was moving has become the top level folder and every single thing on my desktop including links, miscellaneous folders, DW folders etc are sub folders of it.

     

    I've read quite a bit since about cache recreate and think I understand what it's supposed to do, but I can't see why it would have done what it has.

     

    Has anyone used cache recreate, and what was the outcome?

     

    Many thanks

  13. Something has just gone terribly wrong!!

     

    I decided to give it a go with a dummy site that doesn't matter too much. I OK'd the message re synchronization. However, when I tried the site, nothing worked.

     

    I tried to move it back out to the desktop and I got the following message:

    "The cache will now be recreated because the name, root folder, HTTP address of cloaking settings of the site have been changed."

    I had the same message with the first dummy site I moved. I ok'd it. Suddenly, it was doing something to 300+ files and wouldn't stop.

     

    When I've just re-opened the dummy site in DW, all my desktop links are files inside it including all my dummy sites which are sub folders . If I delete the links, they are removed from the desktop.

     

    Can someone please help me!?

  14. if you keep everything in the folders with titles inside the test folder there shouldn't be a problem.

     

    Thanks, Benjamin.

     

    I've just tried it again, and get the same message. Perhaps my process is wrong. Here's what I do:

     

    - go to Site > Manage Sites

    - click on the 'dummy' site which I want to move into my Test Sites folder, eg LightboxTest > Edit

    - in Site Setup for LightboxTest I leave the Site Name as is and click on the browse folder

    - select Desktop > Test Sites > Save. Then I get the message:

    "The root folder you have chosen is the same as the folder for site 'ContactTest'. This may cause some operations, such as synchronization, to work incorrectly. Proceed anyway?

     

    Will the sites still work if I OK this?

  15. Thanks, Wickham.

     

    All the 'sites' are already in their own folders with titles like LightboxTest, ContactTest etc but do have some common names within the individual folders such as index.html, but I still get the message re potential synchronisation problems.

     

    Do I go ahead and put them into the Test Sites folder anyway, or is there some other way of having several 'sites' in one place?

  16. Hi

     

    Where I've been trying out various ideas, testing forms etc I have a number of 'dummy' sites on my desktop eg, Contact Form, Spry Menu Bar etc. None of these are live. I want to keep them for reference, but want to tidy up my desktop. I was going to put them all into one file on the desktop called something original like 'Test Sites'!!

     

    The first one worked ok. However, after that I get a message saying that I already have a site in the folder and that it could cause problems with sychronisation etc.

     

    How do you organise your desktop? All comments and advice much appreciated!

  17. Thanks, Stefan. Re your point (2), how do I hide email addresses from spam bots - is it by using a contact form, for example?

     

    I was thinking of having a contact form, but also putting the email address on the page in case people didn't want to use the form. Also, I thought contact forms could only be used with certain email addresses such as hotmail etc (or perhaps that the more basic ones)?

     

    If you include the email address on the page, does it help prevent spam if you use brackets, eg

    my.email[at]hotmail.com?

  18. Thanks for your post, Eddie. I'll bear in mind your points when I set up the contact form etc. I have used underscores on my email account historically but think dots are probably easier for users.

     

    I read somewhere recently that around 80% of emails are spam ... astonishing!!

  19. Hi

     

    I posted a note on here a while back about the pro's and con's of .org vs .com etc and got some really helpful replies. Off the back of it, our group decided on a .com domain name. The hosting service also offers .com email addresses. However, I've been told that .com addresses are more prone to spam emails. I wondered what other people's experience of this was, and whether we should go for .org after all.

×
×
  • Create New...