Search code examples
.htaccessurlurl-rewritingjoomla2.5sef

How to redirect url using sef rewriting and .htaccess on Joomla 2.5?


I've already read everything i could find on this subject but I still can't redirect my new urls to the old ones !

I'm using Joomla 2.5.6, with Apache and the SEF works fine but the SEF-rewrite doesn't. The URL is actually well rewritten but it doesn't redirect me to the old URL.

I already did this manipulation on a Joomla 1.5 site and it worked fine by changing htaccess.txt to .htaccess and by editing configuration.php but it looks like something has changed on Joomla 2.5

Basically I want my new URL: mysite.com/page.html to redirect to the old one: mysite.com/index.php/page.html

I really need you help ! Thanks !


Solution

  • My problem is solved and it was actually something wrong with apache. I had to rename my joomla file (located at /etc/apache2/sites-available) with my domain name. I also uploaded a router.php file (at /components/com_virtuemart) I found on a forum, and now my SEF rewriting works perfectly !