I'm using Joomla 2.5 with K2,
In category/item URL there is always static time-stamp "2012-12-25-22-22-08" like:
/site/2012-12-25-22-22-08/test-item
I tried some solutions like make sure there is no menu have that time-stamp as external URL, and categories/items also don't have it on aliases..
Any idea how to remove it from URL?
Thanks in advance..
Please check if you have any menu items with type: System Links -> External Url.
Sometimes alias is being added from these items (try to switch it to something else and the alias will be appeared).
If not please check all your menu items and k2 categories alias to find the item that is adding this value.
Τhere is also good to follow these steps:
Clear your joomla cache
Clear your browser cache
Clear sessions mysql table (via phpmyadmin)
Check if your .htaccess is being altered
Good Luck!
Related
Im trying to add Url rewrites in my magento store, Enabling it from configuration is not working.
How to setup Url Rewrites in Magento.?
Do I need to manually change all the url keys of thousands of products in my store.?
Thanks for the help in advance.
Have a look on this extension for free provided by Inchoo -
https://github.com/ajzele/Inchoo_UrlRewriteImporter
This extension will enable you to bulk import URL rewrite.
No, after creating and product or category magento automatically creates url-key for the same.
You can create it by indexing also.
And if there is any issue with url keys then use following steps
Go to database
Take backup of url_rewrite table
truncate the table
Reindex from index management.
Thanks
It's hard to say exactly the answer for your question since it depends on the rule you are going to apply for your products's URLs.
Hope the following information can help:
Each Magento Product has a URL-key as an attribute of product. You
can see it in Edit Product area.
These keys are also indexed
for routing purpose, and you can see all rewrite rules in URL Rewrite
area.
I have a problem. I bought an old domain name and I redirected all my content to it now.
So I have this category as example: http://www.formulawahad.com/category/news/ (or simply formulawahad.com/news/)
So any news link is like this: http://www.formulawahad.com/news/37329/
(My wordpress installed is not in the root - inside a folder).
Today, I got all the files from this domain which goes back to 2001. And Google found like 2000 errors. Now I want to upload them and make them available as they have a lot of backlink.
But the problem is the link of the old articles are like these:
http://www.formulawahad.com/news/090217_coulthard.htm
Or: http://www.formulawahad.com/news/080623_trulli.htm
So what do I do? create a "news" folder and place all html files in it? but then what will happen to my wordpress category formulawahad.com/news/?
I have the same problem with 2 more categories. So I need your help before I decide what to do.
Thanks a lot.
This is simple to get rid of those 2000 errors in google. In wordpress init() hook you have to make a redirect function. In databse add a table with old and new url,get url and search with old url and redirect it to new one.
I am new to Magento. I am working on Magento 1.8 and having problem while creating multi-store-views for different language's. I have done some configuration from backend, I gpt the multiple-store-view. Its converted from English to French but its not converting to Malaysia language. my steps are as follows
Note: I am using responsive custom theme.
Go to the site: http://www.magentocommerce.com/translations and download the proper language that you are looking for.
Extract and upload the files you downloaded to your Magento’s root directory. Keep in mind it will upload files to your app folder in Magento, but unless you try with a language that you already have there, it won’t overwrite anything as it’s a new language.
Once you finish uploading, go to your Magento’s Admin.
Go to: System>Manage Stores.
Click on “Create A Store View”.
Once there comes the really important thing: Put the name you want for the “Name” field, but in your “Code” field, make sure you enter your main theme followed by a “_” (underscore) and then the name of the language you want to use. Even if you used a new template that you did or purchase it would be under a main template type (default or base). Let’s say you have a new template you purchased called “MAG0873″ and its folder resides under “default”. Also, let’s say you installed Spanish language, then you would put “default_spanish” in this field.
Save it and now go to: System>Configuration.
There, select your new Store View name from the “Current Configuration Scope” item in the top left column.
Now, go to the option: General>Locale.
After that, uncheck the option “Use Website” and make sure you change “Locale” field to the language you downloaded (be specific according to the dropdown list!).
Save it after changing it and now clean your cache and refresh your FrontEnd.
Now, few important things:
If you didn’t deactivate the original Store View a new dropdown will appear in the FrontEnd to change the language and the new Store View’s Name will appear there. Once you select it, the entire template should switch its language.
It might happen it switches language but, it also shows old/default template, well, no worries, this means you need to set up your new Store View to use the proper template according to your design set up. The next steps are specific for the persons who install templates through the System>Design option as I do (which I think is the easier and faster way).
Go to System>Design
Add a new Design.
In the “Store” field, select the new Store View you recently created.
.Now select the “Custom Design” you previously installed in your system.
Save it.
Now, your store should be using the proper design in the proper Store View (language).
Ok, now it happens that the hoe page doesn’t show exactly as you had it on the original (English) language? Well, it might be happening that the Home page is set up for an specific Store View. To fix it, just go to CMS>Pages, now click on the “Home” record (assuming you are using default settings that come with Magento) and then in its options make sure you have “Store View” field set up to “All Store Views”. Save it now.
What's mistake i have done here.
Thanks in advance
If you'd like to have a well configured multi-language Magento setup you need to follow the steps below:
Setup a separate Store View for each language (System -> Manage
Stores -> Create store view);
Apply a Locale for each Store View (System -> Configuration ->
General -> Locale Options, select Desired Store View in "Current
Configuration Scope" drop-down in left-side navigation);
Make sure that you have translated all of your CMS pages to all of
your languages. You need to create a unique CMS page for each store
view;
If you'd like to use a separate theme for each language just do it in
System–>Configuration–>General under the Design tab;
In case you need to make a different set of categories in Navigation
menu for each store view, you may control it by "Include in Navigation
Menu" category attribute (Just choose a category for edit and go to
General Information tab). Change all text attributes in Catalog Products and Categories for
each store view
The more detailed guide find here:
http://sherodesigns.com/magento-tutorial/magento-tutorial-creating-multi-language-stores/
I have created a simple basic component in joomla named, careerform so I want to know that what will be its url? Will it be :
index.php/?option=com_careerform
or in sef it will be something like:
index.php/components/careerform
or it will be like this while using .htaccess
/careerform
Is it true or what are joomla default URLs with different settings? Please tell what you know.
thanks for your time.
While what you are asking to do is possible, it would be rather complicated to rename a component. As part of the renaming you would have to update the names of dozens if not hundreds of classes throughout every file of the component. Very likely to run into some bugs because of this.
The far easier prospect is to just avoid these types of urls in your site. Joomla will only fall back to that style of url if a menu item does not exist for the view. Because of that, you can make the url into this:
http://sitename.com/any-component-alias/
To do this, go into the menu manager and create a new menu item. If you don't want this as part of the main menu, you can create a new menu. (I typically have a menu called "Hidden" for menu items that I want aliased but don't actually link to throughout the site from a menu.) When creating the menu item, make sure the type matches the component and view. The alias will then be whatever is entered in the alias box just below the title.
The one issue you may run into with this is that a component may not have a menu type for a particular view. In that case, you you would need to add the necessary metadata.xml file to the view (which again would be much easier than renaming the component!). A good tutorial for that can be found here: http://docs.joomla.org/Adding_view_layout_configuration_parameters.
yes if SEF will be enabled then index.php/component/careerform will be used.
You can create custom URLs by developing a router for your component.
There is very good documentation for it here.
I want to use a template override for Articles in Joomla, therefore I am using
mytemplate/html/com_content/article/default.php
If I change anything in this file the changes do appear.
But as I want to use an extra .php-file f.e.
mytemplate/html/com_content/article/alternativeLayout.php
I am facing a problem. Because although I can select this layout on the article settings page - any Changes I make do not appear and still the default.php is used.
Any ideas what I am doing wrong?
In order for an alternative layout to be used, two conditions must be met -
You must select the layout in the article parameters
No menu item can exist for this item - the layout selection of the menu item will override the selection in the article parameters
It sounds like your problem is with #2.
EDIT
Duh, I missed the key part of using alternate layouts. In order to be able to use an alternate layout with a menu item, you have to create an alternatelayout.xml file and place it in the override folder. This will give you an additional menu item option that you select when creating your menu item. You should be able to copy the defailt.xml file and edit it for the new layout.
I created a visual tutorial for this as it was driving me mad for about two days until I figured out how to actually work it. You can find it here: Joomla custom article template
I hope it helps others solve this faster than I did :-)
PS: all the credit for the article goes to Brent!!
the name of the files must be the same. The override must have the name "default". So its:
/yourTemplate/html/com_content/article/default.php
/yourTemplate/html/com_content/article/default.xml
/yourTemplate/html/com_content/article/default_links.php
had exactly the same problem, this solution solved it.
Also, note that any override filenames must be lower case. For example, "AboutPage.php" won't work.