Joomla URL canonicalisation - url

Could somebody suggest the best way to redirect the non-www to the www in Joomla? I would normally do this in the .htaccess file but I'm unsure if it's the best way to do it with dynamic websites.
Many thanks
Shaun

There is an extension to achieve this, you can find it here on the Joomla extension directory

i would do this via the .htaccess file its the best way as then Google will just index your www.xxx site.

Related

Remapping URLS in web.config

I need to add a term to the URL's within a sub-directory of a website I'm working on to boost/enhance SEO. For example, http://www.domain.com/shop/product/ should go to http://www.domain.com/shop/product-SEO/ instead. I need to set this up in web.config and looked at examples on here but couldn't find anything similar. Any help?
The feature you are looking for is called URL Rewriting.
You should have a look at the following link, it will provide everything you need:
http://msdn.microsoft.com/en-us/library/ms972974.aspx

How to redirect dynamic URLs to a static url?

I am running my site on Apache Sever with Joomla CMS. I need to re-write a dynamic url to keyword rich url.
I am new to url re-writing, I have been trying to solve this, but unable to succeed in this. In the website, i have used the keyword rich url for navigation, but i found this url in yahoo.. Don't know from were this url is coming...
I have the url as www.example.com/keyword-rich-url.html, but other dynamic url is also being indexed by yahoo..
The dynamic url is www.example.com/index.php?option=com_content&view=category&layout=blog&id=61&Itemid=92
I want to re-write it to www.example.com/keyword-rich-url.html and redirect this dynamic url to the url which is used in the website itself, i.e http://www.example.com/keyword-rich-url.html
I tried this code
RewriteRule ^index.php?option=com_content&view=category&layout=blog&id=61&Itemid=92$ http://www.example.com/keyword-rich-url.html [R=301,L]
Any suggestions?
Before posting a question, do your own research and read Joomla documentation.
Check "Global configuration" section in Joomla Administration. There are options for SEO rewriting. Set them properly and make sure you rename htaccess.txt to .htaccess in the web root of your Joomla installation.

Using .htaccess to change my website URLs

I have some pages organised like this:
http://localhost/index.html
http://localhost/download.html
http://localhost/contact.html
And I need them changed to suit the following URL structure:
http://localhost/
http://localhost/download
http://localhost/contact
Without making sub directories and putting in pages as index.html. As far as I know .htaccess can be used for this, but I have no idea what I need to add to my .htaccess file to make this work.
Can anyone provide some help? Thanks.
Are you looking for this? Here's another page. And here's a discussion about it.

Redirect an URL which points to a www.mydomain.com/subfolder to www.mydomain.com

Hy there
Is there any posibility to redirect an URL like "www.mydomain.com/subfolder" to www.mydomain.com"
I'm using a windows server and have the posibility to use IIS7 to do that. Does I need IIS for doing that or is there an easier way?
What I exactly want:
I have installed a CMS on /subfolder, and now the CMS is reachable under "www.mydomain.com/subfolder" but I want to have the CMS under "www.mydomain.com"
How is that possible?
thank's in advance for your help
I'm not that familiar with IIS 7, but what you're searching for can easily be done using mod_rewrite. Of course, mod_rewrite is meant for Apache but there's also a ported version of it for IIS 7. Take a look at URL Rewrite module for IIS7
Best wishes,
Fabian
Yes, you will need to use IIS - you can just point IIS to use that subfolder as the root of the site in the Basic Settings dialog.
alt text http://markashleybell.com/othercontent/img/iis.gif

SEO friendly URLs with Delphi ISAPI

My customer wants me to get rid of the dll and ? & characters in the url and use SEO friendly urls.
How can I go about this URL - rewrite?
Currently I have something like:
http://www.ultimateholidayplanner.com/uhp.dll/AccList?PN=AccommodationSearch.htm
That needs to turn into something like:
http://www.ultimateholidayplanner.com/Accommodation/List.htm
Many thanks
Use II7 and download Microsoft URL rewrite module to change this behavior.
see Using URL Rewrite module
Regards
You don't need to change your code, you need just to use something like ISAPI_Rewrite
ISAPI extensions can be mapped to the extension ".*" creating a wildcard extension mapping, and so catching any and every request to the site/virtual-dir. (especially with 'check that file exists' unselected)
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/5c5ae5e0-f4f9-44b0-a743-f4c3a5ff68ec.mspx?mfr=true
(if it might interest you: I found out working on xxm)

Resources