English 中文(简体)
How to clean up Joomla! URLs?
原标题:

I have been at this for a couple of months now, on and off. I start looking for the solution and i quickly get frustrated with the incomplete or overly complicated answers i keep finding.

All I want to do is to convert this: mysite.com/component/content/article/17-category/61-article-name.html

Into this: mysite.com/category/article-name.html

There has to be a way that wont make my brain fall out of the skull.

I want an answer from those who have done this before, what is the simplest way you know of doing this?

问题回答

You can use a SEF component for Joomla like sh404SEF or aceSEF or JoomSEF. Personally I like aceSEF however they have a footer watermark on each page. You can pay for the version that doesn t.

These will generate SEF urls for you, however if you still don t like them you can go into the component and set the urls for each link manually.

You don t need to install any extension to do that. If you are using Joomla 1.5, go to Site -> Global Configuration and turn on the 3 options that you have on the right side :

Search Engine Friendly URLs - YES

Use Apache mod_rewrite - YES

Add suffix to URLs - YES

Then rename htaccess.txt that you have in your joomla folder to .htaccess

You should have mod_rewrite on your Apache server to get that working.





相关问题
Using PHP to find part of a URL

Take this domain: http://www.?.co.uk/elderly-care-advocacy/mental-capacity-act-advance-medical-directive.html How could i use PHP to find the everything between the first and second slash regardless ...

Domains & Foreward Slash

This is rather difficult to explain so please bear with me. We will be hosting 4 websites on our server and the plan is to have each site sit under its own domain: site-a.com site-b.com sub1.site-b....

Encoding of window.location.hash

Does window.location.hash contain the encoded or decoded representation of the url part? When I open the same url (http://localhost/something/#%C3%BC where %C3%BCtranslates to ü) in Firefox 3.5 and ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

采用网路服务方法

我撰写了一个网络服务,期望一个参数(所谓的“hlink”)成为一种ur。 在使用网络服务之前,URLEncode 所涉参数(“hlink”)。 然后我打电话......。

热门标签