Rewrite Magento Admin URL /index.php/admin -> /admin - magento

I am using Magento 1.7.0.2
My Store admin URL is for example: http://www.mydomain.com/index.php/admin
I want to Rewrite this URL as : http://www.mydomain.com/admin
I have also tried "Admin Rewrites" Magento Extension, But it couldn't Help.
Currently I can't work directly in live website as it may lead to big trouble, So I am working in LOCALHOST now.
How Can I Achieve this ?
Thanks.

I got my solution from this following Blog Link:
Magento Admin URL Rewrite - Set /index.php/admin to /admin (Javascript required)
Admin Rewrites (Magento Extension)
The just linked blog-post is referencing and explaining the usage of a Magento Extension called Admin Rewrites (Magento Extension).
The extension itself is available on Github and can be installed via Magento Composer Installer and/or Modman:
https://github.com/clockworkgeek/Magento-Admin-Rewrites
Alternatively it is also listed in Magento Conect (Magento Conect 2.0 Key).

Another method of doing this does involve modifying a core Magento file (which is a big no, no for upgrading purposes) but works all the same: http://www.code007.ro/magento-how-to-remove-index-php-from-admin-url/

Related

Magento Connect Manager redirecting to 3rd party site - malicious code?

I have a strange problem with Magento Connect Manager: firstly, if I cliick the "settings" tab, the page redirects to an the 1and1.com.com homepage with an affiliate link suffix (1and1 arent my hosting provider).
Similarly, if I try and uninstall / reinstall any extension on the "extensions" page, the same 1and1.com page appears in the window below the list of extensions (where you would normally see the installation being actioned).
I am also unable to install any new extensions / or uninstall any existing ones. I'm guessing this is the result of some malicious code being inserted somewhere?
does anyone else have any similar experience or any idea how to fix?
Thanks in advance.
Rollback your updated htaccess to default magento htaccess and clear your cache and test again.
OR
In your current htaccess file you may find some urls like
http://www.yourdomain.com/
update them to your website url.

Magento: can diffrent magento websites installations use same Database?

I intially had an instance of magento installed that was using a databse, then i intalled another intance of Magento Using the same database, but the problem that occured is that now my old website is getting redirected to new website.
I had configured my old Website's url from localhost to somethingElse.
So, is there a method such that both the websites use the same Database. If so then how to configure it to do so?
You don't need to install another Magento in order to create a new Website, Magento already supports multiple websites on the same instance.
Here is a detailed explanation on Magento websites,stores and store views: http://www.magentocommerce.com/knowledge-base/entry/overview-how-multiple-websites-stores-work/

Magento Enterprise does not create url redirects

I have magento enterprise 1.13.0.2. Option Use Web Server Rewrites is enable. I know when category was created magento community automaticly creates url rewrites for this category. But I wonder why magento enterprice does not do the same thing?
301s have been removed on 1.13EE - you will have to rely on canonicals.
See this link for more info.

Magento theme implementation

Hi I'm trying to figure out theme implementation in Magento. It's my first Magento Community Edition installation and obviously first theme that I try. Its a fairly popular theme called "Fortis". The problem I'm ecnoutering is when I click the links that is included in the default theme e.g. Account or Cart. The url link does not exist and its not included in the folders that comes with Fortis.
So my question is: What is the standard implementation when it comes to Magento Themes? What am I missing here and why are the links not working?
Fortis front page:
Links do not work:
The issue seems with the URL rewrite
try browsing to
localhost/magento_dev/public_html/index.php/hardvara.html
and
localhost/magento_dev/public_html/index.php/customer/account
Check your .htaccess for RewriteBase and set it accordingly
Enable Web Server rewrites at Admin Panel > System > Configuration > Web > Search Engine Optimization
Clear Cache.
I feel, you should try to access/install magento using your IP address instead of localhost. It should be something like that http://192.168.1.123/magento_dev. Replace this dummy ip with your own ip address.

Magento not using appropriate URL - 404 Page not found

I have a magento site running locally using WAMP and it works great. However I need to create a different site so I created a folder for this new site under htdocs.
In that folder I loaded the Magento files.
Created a new database for newsite with all rights in phpmyadmin.
Went to the localhost:8888/newsite and started Magento installation wizard.
In the configuration section of the wizard I entered all the info required: db name, user, password. For URL Base I used the default (http://localhost:8888/newsite). Selected allow charts and Allow apache rewrites. Finished installing magento.
Now magento is running on newsite. I can see the front and back-end of the site.
Here is the problem: When I create a category and/or subcategory, magento does create the menu link but when I click any category, the browser takes me to a 404 not found. Upon analyzing the URL that took me there i see that the URL is : http://localhost:8888/newsite/category.html BUT by adding "index.php" into the URL (http://localhost:8888/newsite/index.php/category.html , the page does work!
So this means magento IS creating the page for the category but the linking is somewhat wrong.
Now, I've been making sure that rewrite is enabled and after all, the other site I mentioned I have is working properly, so I assume rewrite is properly enabled.
So I need help finding:
Why is one site working and the other isn't?
How can I fix this issue?
Thank you!
Sounds like you haven't copied over the .htaccess file (in your Magento root folder). You need this file for the Apache rewrites to work.

Resources