Giter Site home page Giter Site logo

redirection about daux.io HOT 13 CLOSED

justinwalsh avatar justinwalsh commented on September 24, 2024
redirection

from daux.io.

Comments (13)

dkisselev avatar dkisselev commented on September 24, 2024

Check your .htaccess file. It exists in the root of the repository but certain OS configurations won't show it. You'll need to make sure it uploaded to your server properly.

from daux.io.

aacp29 avatar aacp29 commented on September 24, 2024

I have copied an .htaccess file in my daux folder which contains :

php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on

RewriteEngine On
#RewriteBase /

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

But with this file now I have this error when attempting to onnect to my kernosoft.fr/daux/index.php

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Maybe it's interfering with my .htaccess in the root folder, which is managed by my provider, with a "rewrite on" also ?

from daux.io.

dkisselev avatar dkisselev commented on September 24, 2024

Try removing the three PHP_FLAG lines. I had a similar issue.
On 2013-07-24 6:56 AM, "aacp29" [email protected] wrote:

I have copied an .htaccess file in my daux folder which contains :

php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on

RewriteEngine On
#RewriteBase /

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

But with this file now I have this error when attempting to onnect to my
kernosoft.fr/daux/index.php

Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, [email protected] and
inform them of the time the error occurred, and anything you might have
done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an
ErrorDocument to handle the request.

Maybe it's interfering with my .htaccess in the root folder, which is
managed by my provider, with a "rewrite on" also ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/44#issuecomment-21486149
.

from daux.io.

aacp29 avatar aacp29 commented on September 24, 2024

Great ! It works properly know. Thank's a lot.

from daux.io.

sammko avatar sammko commented on September 24, 2024

Hi, i am experiencing a similar problem. My .htaccess file is present, but when i click the documentation button i get a 404. i tried removing the php_flag lines but no avail. i am not getting the internal server error though.
Also i am hosting on an Apache 2.2.22 (Debian) on my http://www.raspberrypi.org/

from daux.io.

pmcatominey avatar pmcatominey commented on September 24, 2024

Have you tried the new clean_urls false setting?

from daux.io.

sammko avatar sammko commented on September 24, 2024

no, how exactly would i do that?

from daux.io.

pmcatominey avatar pmcatominey commented on September 24, 2024

add
"clean_urls": false
to the config.json file

On Mon, Jul 29, 2013 at 4:17 PM, sammko [email protected] wrote:

no, how exactly would i do that?


Reply to this email directly or view it on GitHubhttps://github.com//issues/44#issuecomment-21726514
.

Peter

from daux.io.

dkisselev avatar dkisselev commented on September 24, 2024

And make sure that you're using the most recent version of daux. (clean_urls were only added last night, so if you downloaded the zip before that, you'll need to redownload.

As a different solution, you could try changing your RewriteBase. If daux isn't stored in the root of your server (ie, you have to go to mysite.com/docs to see it as opposed to mysite.com), then your server might require that the RewriteBase is correct.

On my server, daux is stored in mysite.com/internal/docs, so my RewriteBase is /internal/docs/

The difference is that with clean_urls disabled, you'll see index.php in the URL of any daux pages you visit. If clean_urls is left enabled and you get .htaccess working, then index.php won't appear in your URL's

For example:

"clean_urls": true (the default)
mysite.com/internal/docs/Getting_Started

"clean_urls": false
mysite.com/internal/docs/index.php/Getting_Started

from daux.io.

sammko avatar sammko commented on September 24, 2024

That worked, thanks :D

from daux.io.

valeriakononenko avatar valeriakononenko commented on September 24, 2024

How to redirect from
root/folder0/file0
to
root/folder0/file1?
it redirects to
root/folder0/folder0/file1
when the link is: my link<\a>
Can it redirects only to files which are located deeper in a folders tree?
Can I set links as absolute paths?

from daux.io.

dkisselev avatar dkisselev commented on September 24, 2024

You need to add a / at the front of your href reference. So it should be /folder0/file1.

If you do not add the /, it takes locations relative to your current location. So if the page you're currently on is mysite.com/test/one/two, and you click an href="red/blue" then your browser will go to mysite.com/test/one/two/red/blue.

Whereas if the href is /red/blue, then your browser will go to mysite.com/red/blue.

When you add a / to the start, it's still a relative path, but it's relative to the server root instead of your current location. An absolute path is just that, absolute. It absolutely does not matter where you currently are on which server in the world, "http://example.com/red/blue" will always point to the exact same location on the internet. (DNS issues and other unrelated things aside) So they're mostly useful when you're linking to different sites. Within the same site/server you want to use relative as much as possible because a) it makes HTTPS easier, and b) If your domain ever changes, your internal links will still work.

from daux.io.

valeriakononenko avatar valeriakononenko commented on September 24, 2024

It works ok now, thanks!

from daux.io.

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.