• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

Website redirection does not work properly

When users from outside our organization go to the website www.walde.ch/de they automatically get redirected to www.walde.ch/de/   (note the "/" at the end of the URL)

This does not work since we created the DNS zone walde.ch on our internal DNS Servers and created the A record www pointing to the website.

There are a couple of websites which require the / at the end.  When users enter the / at the end of the address they get to the website.

Once I delete the DNS zone walde.ch on our DNS Server and flush the DNS cache, it works again.

As I need the zone walde.ch inhouse, I need to find a way on how to get this working.

I am thankful for any advise!
0
whenz
Asked:
whenz
  • 2
1 Solution
 
Red-KingCommented:
How does your website perform the redirect? Are you using a meta tag in the HTML?
From how you are configuring your DNS, I assume that the website is hosted internally.
What webserver are you using? Have you had a look at the log files on the webserver?
0
 
KimputerCommented:
You can solve it by ADDING the same DNS entry again.
so that
www.walde.ch 217.26.52.11

However you forgot the website depends on walde.ch as well
It means you should make sure your DNS also contains the A record for
walde.ch 217.26.52.11

While you were focussing on the /, you forgot to notice that
A: / or no /, it doesn't depend on your DNS, as that's responsible for the domain name resolution and not the URL
B: www.walde.ch leads to an HTTP/1.1 301 Moved Permanently code (internal redirect on the webserver) to http://walde.ch/de/, which then goes to http://www.walde.ch/de/
0
 
Red-KingCommented:
Great spot by Kimputer.
If you are using a Windows DNS server internally you can create the walde.ch entry like this;

Open the walde.ch zone on your DNS server
Create a "New Host" in the zone
Leave the Name field blank
Enter the IP Address for the website, 217.26.52.11
Click "Add Host"

Now, if you do a DNS lookup for walde.ch and www.walde.ch against your internal domain controller you should return the same result each time.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now