Recommended Posts

Hi Guys,

Just finished a website locally and wanted to upload it on the webserver of my customer. I got a server 500 error. Now, the guidelines of the hoster (world4you.com) does not allow "Options" in the htaccess-file. So, when I uncomment these:

Options -Indexes
Options +FollowSymLinks

the site is visible, but the content won't show and no links are available. Not sure if I need the Symlinks-part but I guess I need a workaround for the Index-part. Can anybody help here? I need the website up and running asap....

Thanks!

Roli

Share this post


Link to post
Share on other sites

I think you'd be safe to comment all that section out.

# -----------------------------------------------------------------------------------------------
# 1. Don't show directory indexes, but do follow symbolic links 
# 500 NOTE: Some cloud hosting companies don't allow +FollowSymLinks. 
# Uncomment +SymLinksifOwnerMatch and comment +FollowSymLinks if you have 500 errors. 
# If that doesn't resolve the error, then set it back to +FollowSymLinks. 
# -----------------------------------------------------------------------------------------------

# Options -Indexes
# Options +FollowSymLinks
# Options +SymLinksifOwnerMatch

Worst that can happen? Still doesn't work.

Share this post


Link to post
Share on other sites
31 minutes ago, DaveP said:

I think you'd be safe to comment all that section out.


# -----------------------------------------------------------------------------------------------
# 1. Don't show directory indexes, but do follow symbolic links 
# 500 NOTE: Some cloud hosting companies don't allow +FollowSymLinks. 
# Uncomment +SymLinksifOwnerMatch and comment +FollowSymLinks if you have 500 errors. 
# If that doesn't resolve the error, then set it back to +FollowSymLinks. 
# -----------------------------------------------------------------------------------------------

# Options -Indexes
# Options +FollowSymLinks
# Options +SymLinksifOwnerMatch

Worst that can happen? Still doesn't work.

it doesn‘t work. i think i need an alternative code for ‚options -indexes‘ but without the ‚options‘...

  • Sad 1

Share this post


Link to post
Share on other sites

Hi @rolisx

On one of my shared hosting it works like that, have you tried this option?

Options -Indexes
# Options +FollowSymLinks
# Options +SymLinksifOwnerMatch

Share this post


Link to post
Share on other sites
21 minutes ago, Zeka said:

Hi @rolisx

On one of my shared hosting it works like that, have you tried this option?


Options -Indexes
# Options +FollowSymLinks
# Options +SymLinksifOwnerMatch

Hi Zeka, i did. The hosting doesn‘t allow the word ‚Options‘ in the htaccess file... 

Share this post


Link to post
Share on other sites

What a stupid host... Well, in that case just remove those lines instead of commenting them out (perhaps make a backup copy for yourself first, in case you decide to switch to another hosting company sometime...)

  • Like 2

Share this post


Link to post
Share on other sites

Do you know if the client is using the DomainServer Basic package. The FAQ pages say that htaccess files aren't even allowed for sites hosted on that service.

Quote

You can use .htaccess files in conjunction with error pages, directory protection and mod_rewrite.
.htaccess files cannot be used with the Domainserver Basic package.

It might be worth emailing the support folks at the host and asking the question direct to them.

  • Like 1

Share this post


Link to post
Share on other sites
16 hours ago, netcarver said:

Do you know if the client is using the DomainServer Basic package. The FAQ pages say that htaccess files aren't even allowed for sites hosted on that service.

It might be worth emailing the support folks at the host and asking the question direct to them.

@netcarver yea, I saw that, but it's not that package. I had contact with their support and they just said "it's not allowed to use options".....

  • Sad 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By gnanasekar
      Hello All,
      Hope all doing good, I am a newbie to processwire. I have an issue please help me out!!!
      Here is my question:
      I have two usernames with one email apparently. when rebuilding my Jenkins server, I get a failed to authenticate and now I cannot reset the password of the other account. Any help would be appreciated.
      Thanks
    • By Jennifer Stock
      Greetings. I would like to restrict access to certain sections of my organization's ProcessWire site using pubcookie. We are rolling out Shibboleth authentication later this year but for now, it seems I can only make use of our institution's single sign-on routine by utilizing rules in an .htaccess file. 
      I am wondering if there is a way to ask PW to apply these rules to certain pages in the site, whether via template type or location in the page tree:
      AuthType UWNetID PubcookieAppID "MyApplication" require type staff faculty  
    • By DamegoGmbH
      Hi there,
      we are a small Communication Agency in Munich and we are searching for a Processwire Developer.
      A lot of our Online Projects are based on Processwire and our current Developer is switching from Freelance to a full term job.
      The work can be done remotely from anywhere.
      For more Informations please contact me directly via Email: p.kirschvink@damego.de
      Looking forward to hear from you.
      Best
      Paul
    • By karian
      Hi, based on the work of @microcipcip and @gebeer  (see their posts here and here), I put together a Processwire + React boilerplate (profile).
      Github repo: https://github.com/lapico/process-react

      Cheers,
      K
       
    • By dweeda
      I installed an SSL Certificate, then edited my .htaccess file:
        # -----------------------------------------------------------------------------------------------
        # 9. If you only want to allow HTTPS, uncomment the RewriteCond and RewriteRule lines below.
        # -----------------------------------------------------------------------------------------------
        RewriteCond %{HTTPS} off
        RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
      by uncommenting out the Rewrite lines.
      Now I get 404 error pages when I try go to any .../processwire-master/<pagename>/
      This includes my admin page at .../processwire-master/processwire/, so i can't get into my admin.
      What else do I need to do?