With XAMPP how to set a default homepage - xampp

My problem is when I set up a server with XAMPP the homepage is the content of the image below:
I have a file named html.html and a folder named hello in which there is another html file. As document root in httpd.conf I have the default c:/xampp/htdocs. I do not want to change the root of the website just set up a html homepage to be opened when someone joins the website.

Create a file named index.html in htdocs. This will compiled as default homepage.

Related

Codeigniter: Make uploads accessible

I'm using the upload class to allow users uploading file to the server.
Those files (e.g. profile images) should be accessible in the browser. Right now, the files stored under /application/uploads which of course cannot be accessed via browser.
Is there a way to make those uploaded files accessible via htaccess?
The only way I can think of, would be moving the files into the /public folder after being uploaded to /application/uploads
What's the best case to handle this?
your folder structure should be like :
---application
--- controllers
--- helpers
--- views
---asset
---system
---uploads
And Whenever you want to fetch/show image use
<img src="<?php echo base_url('uploads/'); ?>" >
Save the files in outside i.e. in public/uploads folder
Create .htaccess file in that folder
Add following line to .htaccess to secure the folder
Options -Indexes

Joomla 2.5 - How to fix 404 Not Found error after restoration using akeeba kickstart

After kickstarting a Joomla 2.5.22 on a new server in a sub-folder, the only page that works well is the home page, the rest give me (404 Not Found).
Tried many solutions found on the web even on Akeeba website here but still can't solve this issue.
I know that it's a path issue as if I add the sub-folder name in the address of the page that gives 404 error, the page displays properly.
Eg : www.testing.ca/mysub-folder/contact.html = Works well !!!
How do I dynamically add the sub-folder name for the entire site? or a best solution to solve this?
In your .htaccess file, replace the following:
# RewriteBase
With:
RewriteBase /mysub-folder/
Open your configuration.php file, and change:
$live_site = ''
to:
$live_site = 'http://www.[yourdomain].com';
Also in the configuration.php file, change the tmp and the log paths to the correct physical location.

i don't see any images on my site

In localhost (Xampp) I created a website folder, there are index.html, css, php and a folder with images. I wrote a link to the image I want to be in the index.html
< body >
< img src="website/images/image.jpg"
but when I open this site in browser, there are no any images on my page. What's the problem?
I guess the correct path would be
images/image.jpg
Because your file is already inside the website folder.

LARAVEL Sub Domain Routing Not Executed

Hi there i have some stupid mistake in configuring laravel.
First of all, this is my structure of folder
i use shared-hosting service and i place my laravel app, vendor and bootstrap into lib folder outside the htdocs (public/public_html) folder
so basically:
var
public_html
www
lib
-app
-bootstrap
-vendor
i create two subdomain called console for client and panel for admin
so i could call the subdomain specific url to access the system
this two subdomain is placed inside the public_html
public_html
-console
-panel
Then i move the public folder from laravel original into console folder (subdomain) with all the content from public folder (index.php, .htaccess, etc.)
Console.myDomain.com is working perfectly.
Now i want to create the admin system from the panel.myDomain.com i have created the subdomain and place all assets files (css, js, etc.) and change the routes into:
Route::group(array('domain' => 'panel.myDomain.com'), function(){
Route::get('/', function()
{
return View::make('admin.index');
});
});
but the page only showing blank page, (the blank page is shown because i place index.php file without content inside the panel folder)
additional info i have setup the bootstrap/paths.php into 'public' => __DIR__.'/../../public_html/console'
and is it require to change?
what proper way to make the panel.myDomain.com execute the routes and showing the right blade i have made?
thank you.

How to create a robots.txt file to hide a view page from search engines in codeigniter

How to create a robots.txt file in a codeigniter project to hide a view page . where should i place this robots.txt file
currently i have created file like this
User-agent: *
Disallow: /application/views/myviewpage.php
in side
/public_html/folder/robots.txt (Where i place my .htaccess file). Is there any way to test this?
The robots.txt file MUST be placed in the document root of the host. It won’t work in other locations.
If your host is example.com, it needs to be accessible at http://example.com/robots.txt.
If your host is www.example.com, it needs to be accessible at http://www.example.com/robots.txt.

Resources