how to create Robots.txt file in Laravel??
when i try to access my Robots.txt file by url it show blank page
https://wallpaperaccess.in/robots.txt
Related
My question is that could we add ajax requests disallow in robots.txt in codeigniter
And is that compulsory to add robots.txt file in home directory or we place it in views with defined routes
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.
A client has seen a non-existent page show up in Google Analytics and would like it redirected to the home page. I am new to CodeIgniter.
I don't see an .htaccess file in this project in the root directory, and tried the following in the routes.ph but it did not work. Do I need to add something in routes.php?
$route['strangepage'] = 'Home';
Try This--
Please put in application->config->routes.php
$route['default_controller'] = 'home';
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 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.