mydomain.x10.mx should start wirth joomla16/index.php

Status
Not open for further replies.

hallo36

New Member
Messages
3
Reaction score
0
Points
0
My request is very basic. And I looked for hours - in the forum, wiki, faq...

Softaculous installed Joomla 1.6 into the directory public_html\joomla16. That's ok (I thought...). The index.php is there, too. When typing:

mydomain.x10.mx

into the address line an index is shown and one has to switch to joomla16 to see the homepage.

I want to have joomla in an own directoriy AND the start of the homepage under mydomain.x10.mx. This can't be too much, is it?

I changed the .htaccess file a thousand times using REWRITEBASE \ or REWRITEBASE \joomla16. I copied to root or to joomla16. Looked for help in the depth of the internet. But my question is so simple that there is no answer to find, I guess.

At the moment there is an Internal Server Error at the backend AND the frontend of joomla. At http://schaubar.x10.mx/ you can find the index. But joomla16 is not shown anymore (I thought the Index-Manager could help and now it can't be changed back somehow).

I guess I have to delete everything... But when I start again: What should be written in .htaccess or is there something else to do?
 

stpvoice

Community Support Rep
Community Support
Messages
5,987
Reaction score
212
Points
63
Hello,

I can't see any files on the account relating to Joomla. Ensure you have RewriteBase / in the .htaccess under RewriteEngine On. Also, ensure nothing is CHMOD 777. Generally, files should be 644 and directories 755.
 

hallo36

New Member
Messages
3
Reaction score
0
Points
0
Hello, I can't see any files on the account relating to Joomla.

They are still there but the entry on the "Index of /" disappeared after my trials with the Index Manager of cPanel. And I can't restore it. When you follow this link: http://schaubar.x10.mx/joomla16/ you'll get the Internal Server Error -whyever, I tried too much.

Ensure you have RewriteBase / in the .htaccess under RewriteEngine On.

I have. Had. Now I renamed all the different .htaccess files. But the Internal Server Error remains...

Also, ensure nothing is CHMOD 777. Generally, files should be 644 and directories 755.

CHMOD is a new issue for me. Got it: The CHMOD can be seen in the cPanel File Manager in the column Perms, right? Nothing is 777 files are 644 ans directories 755 - no new error source :-(

Shortcut: I shouldn't put Joomla! in a directory but directly into public_html, should I?

And: Thanx for the quick answer!
Katharina
 
Last edited:

hallo36

New Member
Messages
3
Reaction score
0
Points
0
Re: mydomain.x10.mx should start with joomla16/index.php

Why does the Index Manager of CPanel puts corrupt code to the .htaccess file? I deleted these lines and the Internal Server Error was gone.

And why installs Softaculous Joomla into a directory when it is not possible to use it there? Meanwhile I created an index.php5 file in the root with:

<?php include ("index.php"); ?>

Why index.php5? -> Renaming the Joomla-index.php didn't work, just as a file index.php that includes another index.php...

In addition there is a php.ini with:

include_path = ".:joomla16"

Result: index.php is found but nothing else - no templates, no links as you can see here: http://www.schaubar.x10.mx/

Meanwhile there are two .htaccess files. In the root there are some lines that were perhaps created by Softaculous with:

Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://schaubar.x10.mx/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://schaubar.x10.mx$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.schaubar.x10.mx/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.schaubar.x10.mx$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
And in the directory joomla16 there is the .htaccess of Joomla (I deleted all comments):

Code:
.
Options +FollowSymLinks Indexes
RewriteEngine On
RewriteBase /joomla16

RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule .* index.php [F]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]
I guess I need a RewriteRule somewhere there... But where and what?
 
Status
Not open for further replies.
Top