Coder Social home page Coder Social logo

Comments (7)

victorstanciu avatar victorstanciu commented on July 20, 2024

Is mod_rewrite installed? If yes, is AllowOverride set to All in your Apache conf / VirtualHost config? The links depend on URL rewriting to work, as they route all requests through the index.php file, where each file is parsed and served.

from wikitten.

amlwwalker avatar amlwwalker commented on July 20, 2024

Im not using a virtual host like you mention in the Setup guide, and when I do sudo a2enmod rewrite it says Module rewrite is already enabled.

from wikitten.

victorstanciu avatar victorstanciu commented on July 20, 2024

Having mod_rewrite installed isn't enough. You still have to tell apache to allow the .htaccess file to set up RewriteRules by specifying AllowOverride All or at least AllowOverride FileInfo.
What OS are you using?

from wikitten.

amlwwalker avatar amlwwalker commented on July 20, 2024

Im using ubuntu server.
So what do I need to add to the virtualhosts config?

I assume I need to add something like:

<Directory /var/www/Wikitten>
AllowOverride All

Or something similar?

Thanks

from wikitten.

victorstanciu avatar victorstanciu commented on July 20, 2024

Yes. On an Ubuntu system that you haven't configured diferently, you should find the default virtual host config in the /etc/apache2/sites-available/default file. Make sure it says AllowOverride All (or at least AllowOverride FileInfo) under your document root directory section in the file, then restart Apache (sudo service apache2 restart)

from wikitten.

amlwwalker avatar amlwwalker commented on July 20, 2024

Cool
Thanks

Perhaps add that to the Installation part of your wiki page??

You mention about VirtualHosts, but I didnt realise I need to change that parameter, maybe others have this problem??

Thanks
Alex

from wikitten.

victorstanciu avatar victorstanciu commented on July 20, 2024

You are right, perhaps I should mention this requirement on the website. Or even provide a no-htaccess alternative.
Anyway, I'm glad it works for you now.

from wikitten.

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.