Giter VIP home page Giter VIP logo

Comments (21)

danpros avatar danpros commented on June 4, 2024

How about the vhost, it should like below,

<virtualhost *:80>
    ServerName example.com
    ServerAlias example.com www.example.com
    ServerAdmin [email protected]
    DocumentRoot /var/www/html/example_com
    ErrorLog /var/log/httpd/example_com_error
    CustomLog /var/log/httpd/example_com_access common
    <Directory "/var/www/html/example_com">
    Options FollowSymLinks Indexes
    AllowOverride All
    Order Allow,Deny
    Allow from all
    DirectoryIndex index.php
   </Directory>
</VirtualHost>

And change the default htacceess under mod_rewrite to:

  RewriteBase /blog
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^ index.php [L]

from htmly.

danpros avatar danpros commented on June 4, 2024

And please what is the OS? still searching what is the most bullet-proof htaccess file? if we found it than I will a release new version contains this fix.

from htmly.

murdockit avatar murdockit commented on June 4, 2024

I'm running a VPS with Ubuntu 12.10 64 bit.

I also have other stuff running like a torrent downloader, openvpn, so I'm not sure if I can change the vhost to work correctly. I'm looking for that file now.

from htmly.

danpros avatar danpros commented on June 4, 2024

I test it on CentOS and not yet on Ubuntu, try to change the default htaccess file first. I will install Ubuntu on my VPS for testing.

from htmly.

murdockit avatar murdockit commented on June 4, 2024

I've changed the things you said but I'm still getting that login not found error.

2014-02-20_22-27-17
2014-02-20_22-27-48

from htmly.

ncang avatar ncang commented on June 4, 2024

@danpros said
RewriteBase /blog
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]

not
RewriteBase /blog
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index.php)
RewriteRule ^(.*)$ index.php/$1 [L]

from htmly.

murdockit avatar murdockit commented on June 4, 2024

This is what I get after changing that.

2014-02-20_22-45-59

from htmly.

danpros avatar danpros commented on June 4, 2024

Please try to change the htaccess atleast become like this:

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^ index.php [L]

or this

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]

from htmly.

murdockit avatar murdockit commented on June 4, 2024

I am still getting the same error when I use each of those in the .htaccess

from htmly.

ncang avatar ncang commented on June 4, 2024

just test remove all line in your .htaccess ,
then set as @danpros said

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]

What version of apache and php are you using?

from htmly.

danpros avatar danpros commented on June 4, 2024

I already turn on the FollowSymLinks, please download the latest version, if still problems I am really sure that this is not HTMLy problems but your apache configurations :)

from htmly.

fahmi182 avatar fahmi182 commented on June 4, 2024

Give option choice :

Options +SymlinksIfOwnerMatch

from htmly.

ncang avatar ncang commented on June 4, 2024

great @danpros htmly has backup feature. 👍

from htmly.

HerrTete avatar HerrTete commented on June 4, 2024

I have the same issue, i uploaded the htmly folder to my hoster, configured everything, but the loginpage isnt displayed.
image

from htmly.

danpros avatar danpros commented on June 4, 2024

@SeniorTete did you use apache2 on ubuntu? is this helpful? http://xface2.com/2014/03/mengatasi-fail-apache2-saat-menginstall-htmly (use Google Translate).

from htmly.

HerrTete avatar HerrTete commented on June 4, 2024

@danpros I dont have my own webserver, i only have some webspace. And there i uploaded htmly. I dont know with os the server is running. There are multiple websites hosted and i cant apply any changes to the config of appache webserver or php.ini

from htmly.

danpros avatar danpros commented on June 4, 2024

@SeniorTete open .htaccess file than try to commented below:

# Don't show directory listings for URLs which map to a directory.
Options -Indexes

# Follow symbolic links in this directory.
Options +FollowSymLinks

become

# Don't show directory listings for URLs which map to a directory.
# Options -Indexes

# Follow symbolic links in this directory.
# Options +FollowSymLinks

from htmly.

HerrTete avatar HerrTete commented on June 4, 2024

i allready deleted all .htaccess files in the htmly directory. Should i recreate the files?

from htmly.

danpros avatar danpros commented on June 4, 2024

Yes, please copy the default htaccess https://github.com/danpros/htmly/blob/master/.htaccess

Please don't remove htaccess file inside config folder for your password security.

from htmly.

HerrTete avatar HerrTete commented on June 4, 2024

I uploaded the .htaccess file to my config folder und tried it with the both options commented and without but nothing changed.

from htmly.

superjamie avatar superjamie commented on June 4, 2024

I had this same problem too. CentOS 6.5 with httpd-2.2.15-31.el6. Resolved by adding AllowOverride All to vhost definition as follows:

<VirtualHost *:80>
    ServerName www.example.com
    ServerAlias example.com
    DocumentRoot /var/www/example.com
    <Directory "/var/www/example.com">
        AllowOverride All
    </Directory>
</VirtualHost>

from htmly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.