Kohana welcome page not shown xampp - kohana-3.2

My website path is
c:\xamp\dhtdocs\egotist\kohana
init \egotist\kohana\
RewriteBase /egotist/kohana/
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
Welcome controller path C:\xampp\htdocs\egotist\kohana\application\classes\controller
Why when I load http://www.localhost:1337/egotist/kohana welcome controller not shown
spent 3 days on this
I cannot post with localhost, I have to add www

Related

react-router not working on production build in LAMP

Hey has anyone experienced issues with react-router on a production build. I'm running a LAMP server and I've built my project put it in the http folder and when I go to a page I get Object not found!. I have setup react-router to go to certain pages based on certain conditions if I go to the root of the server i.e. localhost/ it loads the main page but then if I click on links it works fine as soon as you try and manually go to a link by typing in the search box I get the error message Object not found
This is my .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
</IfModule>
You need to configure your server to return index.html if file not found (404).
Example:
Let's say you have /users route the will show your users list.
It will be ok if first you'll go to / (which will return index.html by default) and then click some router link and it will redirect you to that page. It will work because you wont make any additional requests to the server.
But if you go to /users first - you'll request it from the server. In that case server will try to find users file and it will not be there.
If this configuration is not possible consider using hash router. The url will look like this /#/users

Sonata admin missing css files

Working on a site with php 7.2, Symfony 4 and Sonata admin 3.
In dev, on my machine, everything works fine, the site itself, and the two admins (user and content).
I have put everything on the final server (unfortunately, file by file, no console with S4 ! so, no "composer:install"...).
Still on dev, the site works fine, all functionalities.
But when I try to use the admin page, I only get a non-formatted page. None of the assets (css and js) seems to work!
However the source code are identical, on localhost and the distant site...
Can anyone help me
Edit : I found where the issue comes from : it's linked to .htaccess.
The http address I use ends in /public/index.php. I use .htaccess to shorten it and when using the .htacces redirection I can't get the assets of the admin page, while it works fine without redirection.
Is there something I should change in my .htaccess code ?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ public/index.php
</IfModule>

url is not working in live but working fine at local for cakephp project

I am using cake php version 2.4. My project is running well in my local machine and it is a simple test project. I uploaded it in live. It does not work in live and even all css file are not loading. Should I change any server configuration?
You should check below situation in your Online Server :
DocumentRoot is properly set
Example : DocumentRoot /cake_install/app/webroot
.htaccess file is configured properly.
webroot Directory have the correct permissions
Check all other file/folder permissions
Ensure apache rewrite module is on
Note : rewrite module should be enabled from your online server for CakePHP URLs
I used the following code in .htaccess file where app folder is located:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
Now it works for me.

MediaWiki and Apache2 URL issues

i'm new to LAMP and MediaWiki.
To go to my mediawiki i have to type in domain-name.com/wiki.
When i type in domain-name.com, i go to the apache's index page.
How to make root-url direct me to the wiki page?
From http://m.mediawiki.org/wiki/Manual:Short_URL/Apache
# Redirect / to Main Page
RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]
This should go after your short URL rules. If you have no short URL setup, simply
RewriteRule ^$ %{DOCUMENT_ROOT}/w/index.php [L]
should do the trick (see
.htaccess rewrite to redirect root URL to subdirectory)
I just added one line in my /etc/apache2/httpd.conf:
RedirectMatch ^/$ http://domain-name.com/wiki/
And it works)

Drupal 7 - change index.php as a default main page

I'm trying to work on my new website Drupal7 while I'm keeping in the hosting my old static website. So I have:
index.html (static website. I want to keep for my users)
index.php (drupal new installation)
Is there a way to set in drupal this kind of situation?
The problem, as you problably can see at this point, is that every time I'm going to a different section I'm being redirected to the .html homepage.
I mean for example the admin section is: www.mydomain.com/?q=admin instead of www.mydomain.com/index.php?q=admin
What's the easiest way to keep the html static web for my current users while I'm developing my drupal7 website in the "background"?
I got a solution finally:
DirectoryIndex index.html index.htm index.php
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} q
RewriteRule ^(.*) index.php [L]

Resources