Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    N2C
    N2C is offline
    New Coder
    Join Date
    Mar 2013
    Posts
    11
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Redirect issue - question

    Re-direct Issue

    In a forum: a link to a website has the next sentence touching the link - and the first letter in that sentence is the letter "I" - not "L".

    Link Looks like: http://www.website.com/filename.htmI
    Link should be: http://www.website.com/filename.htm

    Cannot create redirect as the ".htmI" is not a recognized file format by html/server (my guess) -

    Have tried
    /filename.htmI
    /filename.htmI.htm
    /foldername.htmI
    /foldername.htmI.htm

    Have other functional redirects in this website

    Do you have any suggestions? -
    Thank You

  • #2
    Regular Coder
    Join Date
    Jan 2010
    Posts
    127
    Thanks
    9
    Thanked 0 Times in 0 Posts
    maybe show us your code the one the sentence touching the link? i think is better u clear that error so that you no need headache how to redirect

  • #3
    N2C
    N2C is offline
    New Coder
    Join Date
    Mar 2013
    Posts
    11
    Thanks
    4
    Thanked 0 Times in 0 Posts

    the error is not on my webpage

    It is in a forum - that I have no control over - it is NOT on my page but linked into our website. Google is telling us we have 10+ bad links with this forum as a source.

    Since I can't correct the other persons website - the easiest thing to do would be to re-direct the traffic from the bad links - rather then the person get a 404 error - page not found. I want to redirect traffic to the correct page -

    I could try to ask the linking page webmaster to make the corrections - but that isn't always a productive pathway.

    Thanks

  • #4
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,955
    Thanks
    9
    Thanked 726 Times in 720 Posts
    There's a couple of things here.

    If you can see the links on the forum you need to confirm what address they're actually pointing to, as it's simple enough to create a link that doesn't go where you expect - like this http://www.google.com. If you click on the link or just hover over it then you can see where it's actually pointing. It may or may not have the 'I' in the address.

    If you're running linux on your server then it's easy enough to create a redirect from any file at all in your .htaccess file.

    Code:
    Redirect 301 /nonsense.abc /correctfile.htm
    This will work, it doesn't need to be a recognisable file type.

    Is that what you mean?
    Last edited by SB65; 03-29-2013 at 05:50 PM.
    Use the W3C HTML Validator and CSS Validator to check your code and Firebug to see what css is applied to an element
    Read Steve Krug's book Don't Make Me Think - essential reading on web usability
    I don't recommend much, but I do recommend Clook for UK web hosting

  • Users who have thanked SB65 for this post:

    N2C (03-29-2013)

  • #5
    N2C
    N2C is offline
    New Coder
    Join Date
    Mar 2013
    Posts
    11
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Resolved -

    Thank You SB65

    I tried that with the help of:

    http://kb.mediatemple.net/questions/...access+file%3F

    to make sure I was doing it correctly - however, i did review some of the server files & noticed they used html files to forward/redirects.

    There was a highlighted special attention block on the above website - that stated to name the .htaccess as a htaccess.txt then rename it once on the server to .htaccess

    I tired this method to the folder "folder.htmI" - just calling it 'folder" to upload, then once on the server - renamed it to folder.htmI

    originally uploaded - it's icon on the sever was a blank white (unknown icon) - however with the above method - after renaming to 'folder.htmI' - once on the server - it retained it's folder icon & worked just FINE.

    FYI - was using an html file with a meta refresh

    Thank you


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •