I've installed Joomla (running on Ubuntu 14.04) according to the default installation guidelines. My problem is that now when I navigate to my domain (insertdomainhere.com) what shows up isn't my Joomla home, but the apache default page. At the moment I have to navigate to insertdomainhere.com/joomla to view my Joomla page. What I'd like to do is set it so that when I navigate to insertdomainhere.com my Joomla page appears (as opposed to .com/joomla).
Any and all help is greatly appreciated.
Cheers,
Ryan
what shows up isn't my Joomla home, but the apache default page.
This is because you've uploaded Joomla! in /joomla and not in the default directory (/var/www/html). This would result in Apache showing the default page.
What I'd like to do is set it so that when I navigate to insertdomainhere.com my Joomla page appears (as opposed to .com/joomla).
You should move your Joomla! installation to the root directory of your web server or put this in an .htaccess file in the root directory:
Redirect 301 / /joomla
You can use the following to redirect your root folder to /joomla/:
RedirectMatch ^/$ /joomla/
Related
I have installed Magento 2.4 on the Wamp server. After a lot of work, I was able to load the home page with the default theme. Now the problem is I can't access the admin URL. It is showing a 404 error. Also, all the links on the home page when accessed show a 404 error. When I remove index.php from the URL I can access the page http://localhost/timber-traditions/pub/index.php/customer/account/login/referer/aHR0cDovL2xvY2FsaG9zdC90aW1iZXItdHJhZGl0aW9ucy9wdWIvaW5kZXgucGhwLw%2C%2C/. But admin URL is not accessible.
Your url format shall be
http://your_site_url/admin
In your case url might be
http://localhost/timber-traditions/admin
I've just installed Wordpress from my cPanel with Hostgator and this is my dilemma:
My static html site was hosted here at www.mydomain.com and I installed Wordpress in same path. I am able to login into my dashboard and activate new themes but when I click visit website that takes me to same html version and not my Wordpress site. How do I configure my site so that instead of loading my old html site it, it will take me to WordPress site instead. if I remove files for html site, will it automatically render my new WordPress site or do I need to do extra configuration for this to happen?
Your static html site probably has an index.html file, and your WordPress install has an index.php script. Since you installed WordPress in the same folder as your static site both will now exist in the same folder.
The default configuration for Apache is when you browse to the doc root or a directory Apache will look for index.html first and if not found then look for index.php
DirectoryIndex index.html index.php
In your case index.html is found and served.
If you remove or rename index.html you should see your WordPress install since Apache will then look for index.php.
Change the Name of the old file or if you are not going to use it.Just get rid of it.
I have a joomla website.
In my public_html where Joomla is installed, I have a directory named "logs-list".
When I go to the address http://example.com/logs-list/file.txt, I expect the file to be shown, but instead APACHE redirects to index.php, it assumes as if this is a request for Joomla. This has confused me. What should I do?
UPDATE
how I can tell in .htaccess to stick to the physical directory for a certain URL?
I installed Webmatrix 3 yesterday to create a PHP website. When I try to run the basic PHP page, I only see the directory of the project files
but I want to see the web page directly.
I only have a simple page so far, but this is a major issue. When I run the project file I only get:
localhost - /
06/07/2015 14:24 <dir> App_Data
06/07/2015 14:24 <dir> bin
06/07/2015 16:39 187 PHPPage.php
06/07/2015 15:11 659 web.config
The only edits to webmatrix have been adding the PHP extension file.
Have you tried creating an .htaccess file in your webroot directory and writing this in?
DirectoryIndex <index-webpage>
Replace <> by your starting webpage (it is index.php by default)
Another cool tip is to add this to your .htaccess file.
Options All -Indexes
Now it won't display your files as a web directory when you don't have any DirectoryIndex
Edit: In your case, it would be DirectoryIndex PHPPage.php
Rename your PHPPage.php to index.php
Only index.php is run automatically instead of showing the dir structure
In WebMatrix you can decide what you want your default page to be. If you open the site settings one of them is Manage Default Pages and has a list of about 7 different page names.
You can add your own custom named page at the bottom, then you don't have to use the default.php file name to have it automatically run instead of giving you the directory listing.
Sorry if this is a basic question, but Im wondering why my site doesn't display correctly unless I utilize the index.php extension. Here is an example :
www.copishboutqiue.com/salon
which displays incorrectly but
www.copishboutique.com/salon/index.php displays the correct layout we're using. Why do I need to use the index.php when this is the only file in the root directory?
if you are using an apache server create a .htaccess file in the root directory of your website and add
DirectoryIndex index.php