joomla URL rewrite - .htaccess

I am Using Joomla 2.5, I am using extension Enmass for site, I have make SEO URL from Admin but URL will show like this
http://abc.com/index.php/component/enmasse/deal/view/8/evo_in_line_foldable_scooter_black
I need to rewrite this URL to
http://abc.com/evo_in_line_foldable_scooter_black.html
I had tried to change in .htaccess but i didnt success.
If any one has idea for this please let me know.

You can create a menu item within Joomla for this Enmass view and it will create this URL.
The URL you see is created by the Joomla JRoute class if no menu item (Itemid) is passed together with the raw URL.
Also the extension can set up its own routing rules with the router.php file (/components/com_enmasse/router.php).

Related

SEF url not working in joomla

In my joomla project,I have a page which shows a list of stores and on clicking each store, it takes to a detail page and the link to detail page is now as :
http://www.example.com/component/option,com_location/Itemid,201/lang,en/location,1000/
I need my url to look like
http://example.com/stores/1000
I have enabled seo urls and mode rewrite in global settings.Is their any thing I can do with sh404SEF component?
How can I achieve this?I am a beginner in Joomla.Please advice
Probably this component doesn´t have sef urls through filter/search page.
Try to create hidden menu link to one of the stores (with proper alias) and see if redirect goes to sef link.

Joomla 2.5 - Adapting Custom URLs with .htaccess or tool

i've just finished a website with a database for golf-holidays. Now the clue is, i am using joomla internal url-rewrite to generate short urls which is generally great, i like it. The only thing left for SEO optimization would be, if i could point an individual URL to each offer listed in the database. A url to a specific offer looks like this :
http://www.mydomain.com/golfurlaub-mit-greenfee/angebote/urlaubsangebot.html?oid=128
"urlaubsangebot.html" would be the detail site, passed with the parameter "oid" for offerID and then the ID of the offer in my database.
Would it be possible to create a rule / use a tool where i would be agle to assign a custom URL to every offer? For example :
NewURL
http://www.mydomain.com/offers/spain/my-offer-name.html
OldURL
http://www.mydomain.com/golfurlaub-mit-greenfee/angebote/urlaubsangebot.html?oid=128
I tried using tools such as SEF404 and JoomSEF but they rather break my whole structure than help me apply these urls. Any ideas?
Joomla 1.6+ is shipped with Redirect Manager (Components > Redirect). It's designed exactly for this purpose (redirecting old urls to new ones).
Joomla 1.6 will include a new component and plugin called Redirect.
Its main function is to provide a mechanism to record 404 "not found"
errors, and to give the Web site owner the ability to redirect those
to another page if desired.
If there are links to your site that result in error 404, these should be already populated in the list when you open the manager - you just have to add new urls to which to redirect to.
References:
A preview of link redirection in Joomla 1.6
You can use the .htaccess rewrite rules for that:
RewriteEngine On
RewriteRule ^(offers/spain/my-offer-name.html)$ index.php?option=com_mycomponent&oid=128 [L]

how can i hide the part of url using .htaccess

I am trying to remove the part from my url here is the url "http://example.com/custom_joomla_template-2.5.6/about-us/portfolio/itemlist/category/3-category-2"
Now I want to remove "itemlist/category/" from the url so that url can be look link "http://example.com/custom_joomla_template-2.5.6/about-us/portfolio/3-category-2"
I am using default functionality of joomla i.e. SEF urls, I need to simplify it more I am new for the htaccess
Please suggest link for learning how to write rules for .htaccess file
Please help
Easiest thing is just to make a menu link somewhere that goes directly to category-2. That will set up the url correctly. It will also get rid of the 3-

how to use old URls as it is in new drupal site

I am migrating an asp site to drupal.the existing site node URL is as
story.asp?sectioncode=1&storycode=49667&c=1
to use the same urls in drupal site i add the URL in URL aliases.when i click on any article it it showing as
story.asp%3Fsectioncode%3D1%26storycode%3D49667%26c%3D1
in the browser.how to remove %3D,%26,%3F from the URL and when i copy and paste the old url in the browser it is not redirecting me to the actual page giving 404 not found page.could some one please help me how to manage my old URLs as it is in new site.
You're not supposed to type something like story.asp?sectioncode=1&storycode=49667&c=1 as an URL alias.
There's a better way to do that. Try installing redirect module and add a new 301 redirect rule from story.asp?sectioncode=1&storycode=49667&c=1 to your new node's URL node/1.
So, whatever any user / search engine visits story.asp?sectioncode=1&storycode=49667&c=1, they will be redirected to node/1. or whatever the path you have given to the 301 redirect rule.
Hope this Helps... Muhammad.

Subdomains in Joomla 1.5

How do I set up a subdomain in Joomla 1.5? I have a classifieds component and want to show each category URL as its own subdomain URL. For example, if I select the electronics category then it will show electronics.mysite.com.
I want it to be just like http://www.nintendolife.com
idea 1: Wait for an SEO extension to add it as a feature, like Artio
idea2: You need to wildcard your subdomains in DNS/Apache, then add a full url link to your top level nav in the Joomla menu manager as a link: http://electronics.mysite.com/whatever-it-points-to
[You could also add .htaccess redirects but it won't retain the full URL without the wildcard passthrough above and function normally on subpages]

Resources