With "none" and "internal" url rewriting everything fine.
But with mod_rewrite:
All my pages are:
mydomain.com/LT/page-name
but on news morelink:
mydomain.com/news/251/60/Post-title
/LT/ just gone? and The page was not found...
I can manually edit URL into
mydomain.com/LT/news/251/60/Post-title and now everything fine, but how to make it auto.
Any ideas?
1.6.6 News module + Mod_rewrite = missed parent in morelink
Re: 1.6.6 News module + Mod_rewrite = missed parent in morelink
Check config.php for hierarchy setting, news and other modules need it enabled...
Re: 1.6.6 News module + Mod_rewrite = missed parent in morelink
its ok, here is my config:
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '';
$config['use_hierarchy'] = true;
$config['query_var'] = 'page';
I guess I have to modify my .htaccess :/
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '';
$config['use_hierarchy'] = true;
$config['query_var'] = 'page';
I guess I have to modify my .htaccess :/
Re: 1.6.6 News module + Mod_rewrite = missed parent in morelink
Your website is situated in a subfolder
Did you change in the .htaccess file:
into:
Regards Rolf :)
Did you change in the .htaccess file:
Code: Select all
#Sub-dir e.g: /cmsms
RewriteBase /
Code: Select all
#Sub-dir e.g: /cmsms
RewriteBase /LT
Last edited by Rolf on Tue Oct 27, 2009 9:57 am, edited 1 time in total.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: 1.6.6 News module + Mod_rewrite = missed parent in morelink
no there are no folders, it is becouse of language menu tree /LT/ and /EN/
LT
-submeniu
-submeniu
EN
-submeniu
-submeniu
LT
-submeniu
-submeniu
EN
-submeniu
-submeniu
Re: 1.6.6 News module + Mod_rewrite = missed parent in morelink
finally Id find out what to do:
in modules/news/action.default.php
there is line:
$prettyurl = 'news/'.$row['news_id'].'/'.($detailpage!=''?$detailpage:$returnid)."/$aliased_title";
so after little edit:
$prettyurl = 'LT/news/'.$row['news_id'].'/'.($detailpage!=''?$detailpage:$returnid)."/$aliased_title";
works fine, but i think that shouldnt be edited by simple user, becouse of upgrading or updating...
in modules/news/action.default.php
there is line:
$prettyurl = 'news/'.$row['news_id'].'/'.($detailpage!=''?$detailpage:$returnid)."/$aliased_title";
so after little edit:
$prettyurl = 'LT/news/'.$row['news_id'].'/'.($detailpage!=''?$detailpage:$returnid)."/$aliased_title";
works fine, but i think that shouldnt be edited by simple user, becouse of upgrading or updating...
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: 1.6.6 News module + Mod_rewrite = missed parent in morelink
Pretty urls from the News and other modules are hard-coded from the root... this is not a bug, but a design decision.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.