sef

How to clean up Joomla! URLs?

半腔热情 提交于 2019-12-12 01:33:55
问题 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

Remove PHP extension using .htaccess methods (Keeping Link Juice)

淺唱寂寞╮ 提交于 2019-12-11 12:07:45
问题 I'm trying to remove the .php extension on my URLs to make it Search Engine Friendly using the .htaccess file Redirect 301, to keep the "rank juice" and I as much I've tried almost every example around - It just doesn't seem to work. Here are some of the methods I've unsuccessfully tried already: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php This is the most common solution given but nothing happens and there is no

Making SEF URLs with K2 v2.6.5

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 08:12:25
问题 I'm using Joomla 2.5.1 along with K2 2.6.5. I am trying to figure out how to use SEF urls in K2. I have my site with the 'real' folder 'coolmovies'. Joomla controls this folder. Within K2, I have a category alias='scifi', within which I have an item alias='startrek' and 'startrek' has the item id 42. Currently this url works: http://mycoolsite.com/coolmovies/42-startrek I update the SEF settings for K2 to the following: In theory, this should now work: http://mycoolsite.com/coolmovies/scifi

SEF url without name with core php and .htaccess

雨燕双飞 提交于 2019-12-08 02:41:27
问题 I want to make SEF url In that i want to remove file name also from the url. my site is in the core php, I manage to remove the extension from the url but didn't have idea that how to remove the whole file name from the url. As i searched on google i got this code for the .htaccess RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] I have no idea that how to write header in php so it goes in related file but don't show the file name in

How do I get non-existing Joomla URLS redirected to our 404 Error Page?

自古美人都是妖i 提交于 2019-12-07 20:10:53
问题 Brief: Any search friendly URL that starts with a number goes to a broken page that shouldn't exist instead of custom 404 Error Page Details: Any partial existing url & random characters seems to return a broken page and not the 404 page. Example non-exiting urls that correctly goes to 404 Error page: http://www.shareandcare.org/asdasd or http://www.shareandcare.org/a22sdasd Example non-existing or partially existing urls that SHOULD go to 404 Error page: http://www.shareandcare.org/17

SEF url without name with core php and .htaccess

不问归期 提交于 2019-12-06 05:26:17
I want to make SEF url In that i want to remove file name also from the url. my site is in the core php, I manage to remove the extension from the url but didn't have idea that how to remove the whole file name from the url. As i searched on google i got this code for the .htaccess RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] I have no idea that how to write header in php so it goes in related file but don't show the file name in url. <a href='http://mysite.com/edit/user/2/1'>click</a> Now if i click on above link it does goto edit

Remove component part from sef url, menu item not completely

丶灬走出姿态 提交于 2019-12-02 17:23:34
问题 I've built a custom component for joomla 2.5. Now i wanted to implement sef urls. So I started to create the router.php file. I was almost successfull. The only thing I want to change is removing the component name link. Here is what I have got: http://host.tld/component/componentname/ If I create a menu item with an alias, the sef url looks like this: http://host.tld/alias This is the actual scheme I want to have, but it is only shown when I clicked the menuitem from the menu. If I am at the

Rewrite dynamic url structure with .hataccess

心已入冬 提交于 2019-12-02 12:38:28
问题 I've tried to rewrite the dynamic URL (below) to a slightly different structure; either does not work or I am not sure if it is correct: Old URL (URL#1): index.php?lang=AAA&zone=BBB&city=CCC&str=DDD&search=EEE New URL (URL#11): index.php?lang=AAA&country=BBB&place=CCC&street=DDD *basically changed the names and the "search" string is not important any more what I am trying to achieve is redirecting all visitors from (old) dynamic URL#1 to (new) dynamic URL#11 In a second step, after all

Rewrite dynamic url structure with .hataccess

青春壹個敷衍的年華 提交于 2019-12-02 06:12:29
I've tried to rewrite the dynamic URL (below) to a slightly different structure; either does not work or I am not sure if it is correct: Old URL (URL#1): index.php?lang=AAA&zone=BBB&city=CCC&str=DDD&search=EEE New URL (URL#11): index.php?lang=AAA&country=BBB&place=CCC&street=DDD *basically changed the names and the "search" string is not important any more what I am trying to achieve is redirecting all visitors from (old) dynamic URL#1 to (new) dynamic URL#11 In a second step, after all search engines show the new urls and we finished all test that are easier with non-sef urls, we would like