How to change the base link url in magento - magento

I have changed the Base Link Url(base link url) ( not the base url) . Now my site is not accessible except for the home page. How to solve this ? . This option is not visible in core_config_data table too.
I am using magento 1.8.
I changed it system -> web -> unsecured -> base link url .
Now I am not able to access anything in my site. as am getting two index.php in the url.

Go to your root folder and look for .htaccess
In that file scroll down (to line 123) a bit until you find a line of code that is commented out, should be similar to:
RewriteBase /magento/
Change that line to
RewriteBase /

Related

can magento add store with different subdomain?

it's my first time to use magento
my main domain for exmple domain .com with centos OS
my magento on store.domain .com with Ubuntu 16
can i use the same Ubuntu server for another store with sub domain store2.domain .com ?
P.S my main domain domain .com uses wordpress Cms
thanks
Yes. You Can add store with different subdomain. Follow below steps:
Go to admin then select tab System->manage stores
Click create store view and complete the form and save store view
Change the Base URL for each Store view
1.Go to admin then select tab System->configuration
2.On the left side of the page General under that select web but before that you have to change the Current Configuration Scope to your store view name
3.Edit the base url to you subdomain(eg: http://en.yourdomain.com)
4.click save config.
Change .htaccess for redirecting to store view if you call the subdomain
1.Your .htaccess file is at the root folder of magento.
2.Search for "RewriteEngine on" word in .htaccess file and write the code below it
RewriteCond %{HTTP_HOST} ^en.yourdomain.com
RewriteRule ^ - [E=MAGE_RUN_CODE:english]
RewriteCond %{HTTP_HOST} ^fr. yourdomain .com
RewriteRule ^ - [E=MAGE_RUN_CODE:french]
then save the .htaccess file and try to clear all cache and browsing history from your browser as well as from magento.

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.

Magento Remove index.php from URL

I have multiple websites installed in one Magento, and for one website, I have a full view store(www.example.com) and mobile view store(www.example.com/mobile). I have taken off the index.php from full store, but for somehow, it cannot be taken off from mobile store, I double checked, (1) Use Web server Rewrites set to yes (2) Use secure Url in frontend to yes (3) .htacess Rewrite Engine on and RewriteBase/. I cleared the Magento cache several times and I even reindexed. Why the index.php is still there?
Here is part of .htacess file.
## enable rewrites
Options +FollowSymLinks
RewriteEngine on
############################################
## you can put here your magento root folder
## path relative to web root
RewriteBase /
There are few step to remove index.php from url
Step1:Admin>System > configuration>General>WEb>Search Engine optimization
Use Web Server Rewrites enable to yes
Also Enable mod_write of apache
Follow the below steps to remove index.php from URLs in Magento
Step 1:
* Goto to your site root folder and you can find the htaccess file there.Open it on text editor and find the line #Rewrite Base/magento.
* Just replace it with Rewrite Base/
Step 2:
* Then goto your admin panel and enable the Rewrites(set yes for Use Web Server Rewrites).
* You can find it at System->Configuration->Web->Search Engine Optimization.
Step 3:
* Then goto Cache management page (system cache management ) and refresh your cache and refresh to check the site.
Try the Steps I have written in this blog post :
http://magentowebmaster.blogspot.in/2013/11/magento-admin-url-rewrite-set.html

how to redirect a link in my website to an external link?

I have provided a link from my web site in my andoird app which is:
www.mysite.com/support
And i want this link to be redirected to:
www.anothersite.com
i have already tried com_redirect and entered support as source and http://ww.anothersite.com but i dont get any redirects and i get 404 error.
I am running Joomla 3.x and i want to know how i can do this with URL rewrites and no external components.
It seems not possible to do it within the Joomla backend (i tried many combination of menu items and the redirect module).
For sure you can write your redirect directly in your .htaccess (if you are using it) like this:
RewriteEngine On # Turn on the rewriting engine
RewriteRule ^support/?$ http://www.anothersite.com/ [R=301,NC,L] # Permanent Move
or
RewriteEngine On # Turn on the rewriting engine
RewriteRule ^support/?$ http://www.anothersite.com [R,NC,L] # Temporary Move
More info about URL rewriting and .htaccess are here: http://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/

Code igniter and wamp not finding files in different folder

I happened to run into this problem with a code igniter based folder/site in my wamp's www folder, the folder is named igniter and the site works great on that folder, but when I copy paste that folder or simply rename it, the routing stops working.
To be more specific, I enter the newly renamed folder/site via browser, like http://localhost/igniter2 for example, and the code igniter routes to the default/homepage intended but when I try to access any other page via links or direct routing all I get is a 404 page not found error, even if I try to click the homepage link in the homepage it gets the same error.
I tried to look everyone but didn't find answer, can someone help me figure out the problem?
I checked the file www/igniter2/.htaccess and on the first 3 lines i saw:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /igniter/
and changed to:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /igniter2/
Now works wonders :) thanks curious_coder for the tip.
Change the 'base_url' parameter to 'http://localhost/<new_folder_name>/' in config.php.
config.php is present in 'application/config/' folder.
In your case:
$config['base_url'] = 'http://localhost/igniter2/';

Resources