URL Rewrite Rules ignored by Joomla 2.5.6 - Joomla! Forum - community, help and support
i have 3 instances of joomla running on 1 apache server on linux box. 3 root directories start @ /apache/www/html root level, represent 1 division , 2 sub groups under division. boss wants url structure match org chart. ease of maintenance on each server instance, wanted directory structure flat (not nested).
so here's physical directory structure on server:
joomla #1: /apache/www/html/div1
joomla #2: /apache/www/html/div1-grp1
joomla #3: /apache/www/html/div1-grp2
but urls need be:
https://mydomain.com/div1/
https://mydomain.com/div1/grp1
https://mydomain.com/div1/grp2
(note difference - vs. /)
in apache conf directory added following lines httpd.conf file:
this works great homepage. links joomla creates (in grp1 , grp2 websites) show - (hyphen) like: https://mydomain.com/div1-grp1/about-us instead of https://mydomain.com/div1/grp1/about-us. links work, need rewritten "/div1/grp1/about-us"
in global config, have seo setting: use url rewriting = yes , i've renamed htaccess.txt .htaccess. haven't modified file.
how joomla rewrite links produces?
thanks advice.
so here's physical directory structure on server:
joomla #1: /apache/www/html/div1
joomla #2: /apache/www/html/div1-grp1
joomla #3: /apache/www/html/div1-grp2
but urls need be:
https://mydomain.com/div1/
https://mydomain.com/div1/grp1
https://mydomain.com/div1/grp2
(note difference - vs. /)
in apache conf directory added following lines httpd.conf file:
code: select all
rewriteengine on
rewriterule ^div1/grp1/(.*) div1-grp1/$1 [l]
rewriterule ^div1/grp2/(.*) div1-grp2/$1 [l]this works great homepage. links joomla creates (in grp1 , grp2 websites) show - (hyphen) like: https://mydomain.com/div1-grp1/about-us instead of https://mydomain.com/div1/grp1/about-us. links work, need rewritten "/div1/grp1/about-us"
in global config, have seo setting: use url rewriting = yes , i've renamed htaccess.txt .htaccess. haven't modified file.
how joomla rewrite links produces?
thanks advice.
quick update: changed use url rewrite no , nothing changed. doesn't seem care setting, know does? wouldn't .htaccess handle anyway?
Comments
Post a Comment