url rewriting in joomla with htaccess


my joomla url is :


<a href="http://sitename.com/index.php/search/door?slug=" rel="nofollow">http://sitename.com/index.php/search/door?slug=</a><strong>101-jessica-alba-202</strong>


and make it to url like :




so what is the .htaccess rule for this. ??

i tried

RewriteCond %{HTTP_HOST} ^(([0-9]+)-(.*)-([0-9]+))\.sitename\.com$ RewriteRule ^$ index.php?option=com_name&view=viewname&slug=%1


There are multiple steps that need to be done in order to accomplish what you want:

<ul><li>You will need to enable wildcard subdomains on your domain (this can be done via cPanel)</li> <li>You will need to modify the appropriate router file to parse the first part of the URL (and not the last part).</li> <li>You will need to add the appropriate entries in the .htaccess file.</li> </ul>

So, it's just not only an .htaccess modification that will do what you want.


  • Android ExpandableListView not expanding
  • Allow access in htaccess based on the HTTP:X-FORWARDED-FOR
  • $_GET URL from ?url=http://google.com
  • Mod Rewrite and passing a URL as parameter
  • mod rewrite subdomain to folder break paths to css and images
  • htaccess mod_rewrite - Trailing Slash and loop of redirects
  • SilverStripe. How to redirect from www.domainName to domainName?
  • Why I am getting 'Forbidden' when I try to login on my live codeigniter site?
  • htaccess mod_rewrite URL within subfolder
  • Redirect only with specific domain
  • .htaccess mod_rewrite Unknown number of Variables of a GET form
  • Codeigniter 2.1.4 installation in sub directory
  • How can I .htaccess 301 redirect all pages/files (except for one) to new domain?
  • Mod_rewrite: Include query string when redirecting
  • How to escape “?” using regex in .htaccess for mod_rewrite
  • url rewrite not working .htaccess
  • Strip down any parameter from URL which is not whitelisted
  • Use htaccess to mask domain and folder name
  • Too many Redirects after switching WordPress to https
  • Can't access my folder because of WordPress [closed]
  • Change URL in browser without redirection with htaccess
  • Help with mod_rewrite
  • htaccess settings for angularJS pushstate
  • Removing the .php file extension from the URL Request
  • Mod rewrite redirection to another domain if file not exist
  • Redirect to trailng slash (htaccess)
  • Zeromq with python hangs if connecting to invalid socket
  • F#: In which memory area is the continuation stored: stack or heap?
  • Apache RewriteRule redirection with url encoded
  • htaccess add www if not subdomain, if subdomain remove www
  • Magento Fatal error: Maximum execution error solution, on WAMP
  • Google Custom Search with transparent background
  • vba code to select only visible cells in specific column except heading
  • Circular dependency while pushing http interceptor
  • Linker errors when using intrinsic function via function pointer
  • CSS Applying specific rule for a specific monitor resolution with only CSS is posible?
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • To Get the radio button value in ruby on rails