I have Magento CE 2.0.5 installed locally on Ubuntu with apache2. To view a page other than index, instead of localhost/magento/anotherpage, I have to use localhost/magento/index.php/anotherpage. But this doesn't work for the backend administration page, which I have no way of accessing. Also, no images or stylesheets are loaded on pages.
I know I have mode_rewrite enabled (it's shown as loaded by phpinfo();), and .htaccess in the Magento root folder contains the uncommented line:
RewriteBase /magento/
Thanks.
Yes, sometimes not able to access other pages in both frontend and adminend its because of index.php problem..
To Work other pages also in Magento2, You can add this below line in database.
Step1: Open database,and Go to table core_config_data.
Step2: Insert this data:
path: web/unsecure/base_link_url
value: http://192.168.1.XX/magento_folder/index.php/
scope: default
scope_id:0
Step 3: Save and now able to navigate otherpages in both ends.
Related
I have installed laravel in my root of domain, its working fine. However
I want use one sub directory for other purpose like install admin panel in it. For example I have installed laravel in example.com Now I want install other core PHP admin panel in new sub directory called adminpanel. its like this example.com/adminpanel/
but when I try to access it, its giving me error called page does not redirect correctly. I have read somewhere that I can achieve it if I modify my .httaccess file but I have not much knowlede of it. Let me know if someone can help me for same.
Thanks!
Better option is creating an subdomain for the admin dashboard. Login into your cPanel and create a sub domain adminpanel.example.com set the path to your new folder.
Non cPanal
If you don't have cPanel, You should create vhosts for your subdomain in server config (apache/nginx).
My folder structure
My problem was I know how to add path in home page for php
include('affiliate-pro/controller/affiliate-tracking.php);
I added require_once("affiliate/controller/affiliate-tracking.php"); in home.php...
please give me suggestion...
It is possible to use the affiliate-pro system with Codeigniter. In your views (for example in your footer.php) include it this way:
<? include('affiliate-pro/controller/affiliate-tracking.php'); ?>
And when you're in a controller, use:
include '/home/bolzz/public_html/affiliate-pro/controller/record-sale.php';
Notice that if you decide to use the system while it's installed on another domain or root directory - you will have to enable 'allow_url_include=1' in php.ini and restart apache. Not recommended...
I have an addon domain like this :
/public_html/mysite
Site is available from the following address:
www.mysite.com
now I want to install laravel on this addon site.
I've copied all folders insdie mysite directory :
but when I enter www.mysite.com on my browser it shows content of my laravel project :
solved:
How to install laravel inside an addon domain
There are different ways you can install laravel inside an addon domain. Here is one of the easiest ways to do it.
Go to your CPanel and open Softaculous Apps Installer.
Look for Laravel Installer and open it. Carefully select the addon domain where you want to install Laravel.
Click Install. If there was no previous install then it would take 3-4 seconds.
Now go to the File Manager and open that specific domain folder. You will see All the laravel files there.
Now if you have an existing project that you want to upload on this domain simply make a zip file of your project and upload & extract inside this domain folder.
ONE LAST THING
When you install Laravel using Softaculous Apps Installer you get a redirect from domain to /public. To resolve this open index.php file (Not the one inside the public folder, one that is outside). Remove all the code from it and just paste the code given below.
<?php
header('Location: public/');
?>
And that is it. This should work for you.
Is it a shared hosting you're using if yes then :
Put the content of public (L5) directly on public_html (be aware of don't overwrite the .htaccess file accidentally)
Now in
then modify your index.php and your bootstrap.php and it will work just fine
Hey guys I am trying to figure out where I can edit my links to pages for Joomla. I recently just switched server over and transfered site but I am trying to get rid of this link:
thesite.com/index.php/home/2013-08-03-07-53-09/home-page-4-one-page
So that now it is just:
thesite.com/
Suggestions, thoughts?
UPDATED:
More so the question I am asking, the home-page-4-one-page file that is being grabbed here I want to make that so its located at the root and not all the way /index.php/home/2013-08-03-07-53-09/home-page-4-one-page
For making this specific page the default (home page) of your website, you need to set this menu item as the default menu item of the site.
To get rid of the index.php, you need to enable URL rewriting in global configuration and rename the htaccess.txt file in your joomla root folder to .htaccess and un-comment the Rewrite Base rule.
Go to Joomla administrator->Menu manager.
Edit Home link and update it's alias.
It will resolve the issue.
I am a cakephp newbie and I had trouble to view the files under the view folder through browser.
I used cakephp console to bake model, controller and views. (ex: Invoices_controller.php for controller, invoice.php for model and a invoices folders under views folder). According to the tutorial I read, I can access the invoice view by typing http://localhost/myProject/invoices
(there is no index.php inside the invoices folder..but the tutorial shows it still can display a page. no idea how they did it)
The path for my invoices is myProject/views/invoices and there add.ctp, index.ctp, edit.ctp files inside the invoices folder.
The browser showed the file is not found when I typed http://localhost/myProject/invoices
You have some lack in your knowledge about how the webserver handling a request when cakephp is installed. Assume that we use apache.
In cake's folder structure you can see .htaccess files in the root, app and webroot directories what have url rewrite rules in them. At the end a normal request to a cakephp site will be transformed to a http://site.url.root/app/webroot/index.php?url=original.url
In nutshell to understand it in your point of view:
That index.php call the required php files and at least a cakephp app object is built up in the memory with the required models and methods. Then the app object let say start and calls its methods (model, controller and view methods) and at the end it gives back a result to apache what serves it to you.
Therefore the original url path is a "non existent" virtual url.
If you enter http://localhost/myProject/ do you get a cake intro page? If so does it highlight any problems?
It sounds to me as if you do not have Apache set up properly. I don't know what OS you're using, but it might be worth checking this link, written for Ubuntu, to make sure all is well: http://leoponton.blogspot.com/2010/05/getting-cakephp-up-and-running-on.html
I fixed the same problem.
if you are using windows 7 os, wamp server, cakephp 2.2.3. then
goto apache -> http.conf -> open -> search for mod_rewrite -> uncomment the line LoadModule rewrite_module modules/mod_rewrite.so
Now restart your server, now it should work fine.
Jerry, I think the issue is this. You have put the CakePHP folder in the root of localhost. I would propose that you create a virtual host pointing the myProject so the url becomes:
http://myProject/accounting
This may solve your problem. Be sure rewrite module is on. Also, when you point the virtual host to myProject, it should be the APP folder of the cakephp. If you want to run multiple projects off the same core, you can set them up like so:
/var/www/cake
/var/www/html/myProject
/var/www/html/myProject2
The /var/www/cake directory is where you drop the cake core. Under this directory you will have cake, app, plugins, vendors, etc. the myProject(2) directories will be the contents of the app directory.
Now, to get this to work, you need to go to /var/www/html/myProject/webroot/index.php and edit it to point to the cake directory in /var/www/cake. This will then load the core when rewrite points to index.php in webroot. You should be good to go!