Page 1 of 1
News module not linking to articles
Posted: Thu May 02, 2013 6:42 am
by kirks
I'm not sure what happened although I think it has something to do with pretty urls but the news articles suddenly don't link from the summary links anymore.
Does anybody have any idea what I could have done to break it?
http://www.veritywebsvs.com/furnitureshowplace2/
CMS Version - 1.11.5
News module version - 2.12.12
Re: News module not linking to articles
Posted: Thu May 02, 2013 9:12 am
by velden
I too believe it's because of the .htaccess file not properly configured as e.g.
http://www.veritywebsvs.com/furnituresh ... eekend.htm does work.
RewriteBase in .htaccess configured correctly?
RewriteBase /furnitureshowplace2
Re: News module not linking to articles
Posted: Thu May 02, 2013 2:21 pm
by kirks
velden wrote:RewriteBase in .htaccess configured correctly?
RewriteBase /furnitureshowplace2
I don't know. I had a hard time trying to get pretty urls to work partly because the site is temporarily located under the root of a Wordpress site until it is published live. I don't know how to configure RewriteBase. Is there somewhere I can get instructions?
Re: News module not linking to articles
Posted: Thu May 02, 2013 2:27 pm
by velden
kirks wrote:Is there somewhere I can get instructions?
Yes, it's default present in the htaccess.txt file in the /doc directory.
htaccess.txt is supposed to be copied to the cmsms root and renamed to .htaccess
Code: Select all
...
<IfModule mod_rewrite.c>
RewriteEngine on
#
#Sub-dir e.g: /cmsms
RewriteBase /
...
Re: News module not linking to articles
Posted: Thu May 02, 2013 3:42 pm
by kirks
I did that. Here's my .htaccess file:
Code: Select all
# -- cmsms urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /furnitureshowplace2/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
# RewriteRule . index.php [L]
RewriteRule ^([^/]*)\.htm$ /furnitureshowplace2/index.php?page=$1 [L]
</IfModule>
# -- cmsms urls end --
Re: News module not linking to articles
Posted: Thu May 02, 2013 5:59 pm
by Dr.CSS
You need to remove the / at the end, note how it is shown in the example...
#Sub-dir e.g: /cmsms
RewriteBase /
RewriteBase /furnitureshowplace2/
Re: News module not linking to articles
Posted: Thu May 02, 2013 6:17 pm
by kirks
Dr.CSS wrote:You need to remove the / at the end, note how it is shown in the example...
#Sub-dir e.g: /cmsms
RewriteBase /
RewriteBase /furnitureshowplace2/
Thanks. That makes sense and I tried that but no success with the news module.
ks
Re: News module not linking to articles
Posted: Thu May 02, 2013 6:42 pm
by velden
Try:
Code: Select all
RewriteRule ^(.+)\.htm$ /furnitureshowplace2/index.php?page=$1 [L]
I think if you edit the default files (like this .htaccess) you should exactly understand how it works...
Re: News module not linking to articles
Posted: Thu May 02, 2013 6:51 pm
by kirks
velden wrote:Try:
Code: Select all
RewriteRule ^(.+)\.htm$ /furnitureshowplace2/index.php?page=$1 [L]
I think if you edit the default files (like this .htaccess) you should exactly understand how it works...
You're right, I'm going to have to MAKE some time to learn this stuff.
Thanks, it works great now!