• Resolved hazeblue

    (@hazeblue)


    Hello,
    I have attempted to install WP a few times on my website. The reason i installed and removed it over and over ( I’m new at this ) is that the site url kept showing /wordpress at the end – domain.com/wordpress, and at domain.com all i got was the index which I obviously dont want people to see.
    Then I used this redirect command in my htaccess file, something like
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^(www.)?YourDomain.com$
    RewriteRule ^(/)?$ blog [L]
    which messed up big time! ??
    Now i have installed it for one last time ( and i installed it directly on the root folder so I won’t have /wordpress url again!)
    The problem now is that the site gives an error “The requested URL /wordpress/ was not found on this server.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.” when I type domain.com (without www) and is redirected to domain.com/wordpress.
    So perhaps I have messed up my htaccess file? I tried after removing the commands in it but its still the same error!
    Can anyone understand what went wrong Or should I just reinstall the whole website? I really dont want to do that again!
    Help!

    But the site works fine with the url https://www.domain.com.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Elan Technosys

    (@elantechnosys)

    Can you post your .htaccess so we can see the problem.

    Thread Starter hazeblue

    (@hazeblue)

    I would but .htaccess file is empty

    Thread Starter hazeblue

    (@hazeblue)

    I’m really desperate here, this one is driving me nuts!!

    Thread Starter hazeblue

    (@hazeblue)

    I just tried to open the website in Firefox, Opera and Safari as domain.com and it works fine.
    But it still doesn’t work with Chrome. If I type in mydomain.com it directly goes to mydomain.com/wordpress/ and gives an error message.

    LouieGeetoo

    (@louiegeetoo)

    Try opening it in Chrome Incognito mode or on another computer. If it works there, then you probably just need to clear your Chrome’s cache and site data (wrench > Tools > Clear browsing data…).

    Thread Starter hazeblue

    (@hazeblue)

    I cleared the cache and now its working like it should ?? Thanks!

    LouieGeetoo

    (@louiegeetoo)

    You’re quite welcome! ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘site does not open without WWW / redirects to domain.com/wordpress’ is closed to new replies.