1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Why when access my virtual machine, it loads the link without a slash?

Discussion in 'Site & Server Administration' started by pesst, Nov 21, 2018.

  1. #1
    Hi there, let's say my site is www.example.com/hello/index.html

    when I access it for the 1st time with chrome in laptop or with android browser it loads this

    www.example.comhello/index.html (if I fix it in the second time will load)

    therefore an error, how to fix it? what is wrong in the server files or redirects?

    thanks in advance
     
    pesst, Nov 21, 2018 IP
  2. RoseHosting

    RoseHosting Well-Known Member

    Messages:
    230
    Likes Received:
    11
    Best Answers:
    11
    Trophy Points:
    138
    #2
    It would be a good idea to provide us with the web server configuration file (virtual host block only) including the rewrite rules in the .htaccess file, so the forum members can help you with this.

    If for example you have a redirect rule like this one:

    Redirect permanent / https://www.example.com

    you might be missing a trailing slash / after your domain name, so the correct redirect rule should be:

    Redirect permanent / https://www.example.com/
     
    RoseHosting, Nov 24, 2018 IP