Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with htaccess and news manager
#1
Not sure if this question should be in plugin section or general so apologies in advance if it's in the wrong place.

I installed the News Manager plugin, and after tweaking with the language file I managed to get some test posts on a page. My problem is with pretty URLs for the individual posts and I don't know if it's the htaccess rewrites or something in the plugin functions.

Basically the url is missing a slash between the parent page and the post page so I'm getting this:
http://localhost/mysite.co.uk/myblogpost/test-new-post
instead of this:
http://localhost/mysite.co.uk/myblog/post/test-new-post

After going round in circles for most of last night and a couple of hours tonight I figured it was time to ask for help. I changed the htaccess as suggested on the plugin but have not idea if it's something in there or in the functions file that I need to fix? Pretty urls work fine on the rest of the site.

Code:
RewriteRule ^myblog/tag/([^/.]+)/?$ index.php?id=myblog&tag=$1 [L]
RewriteRule ^myblog/post/([^/.]+)/?$ index.php?id=myblog&post=$1 [L]
RewriteRule ^myblog/page/([^/.]+)/?$ index.php?id=myblog&page=$1 [L]
RewriteRule ^myblog/archive/([^/.]+)/?$ index.php?id=myblog&archive=$1 [L]

Can anyone help with this?

Thanks!

[Moved the topic to the plugin section. This post should belong to the newsmanager plugin thread, but the system only allows moving stuff to top-level sections in the forum. - polyfragmented]
Reply
#2
Kate,

well, at the german getsimple-site, we have the news in a page called "blog":
http://www.get-simple.de/blog/

the URL of the news are f.e.: http://www.get-simple.de/blog/post/getsimple-31beta

so for us it is working. Our .htaccess-rules for the newsmanager are these:

Code:
# Newsmanager-Regeln für Fancy URLs  
RewriteRule ^blog/tag/([^/.]+)/?$ index.php?id=blog&tag=$1 [L]
RewriteRule ^blog/post/([^/.]+)/?$ index.php?id=blog&post=$1 [L]
RewriteRule ^blog/page/([^/.]+)/?$ index.php?id=blog&page=$1 [L]
RewriteRule ^blog/archive/([^/.]+)/?$ index.php?id=blog&archive=$1 [L]

I do not see a difference, so we need more info
which PHP-Version
what Host, Apache?
which GetSimple-Version?
which NewsManager-Version?

what do you mean with fixing the "function-file"?
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#3
Hi Connie, I'm using Wamp for testing and the versions below. I was referring to the functions.php file of the news manager plugin as I saw a reference to the function nm_get_url mentioned somewhere else in the forum.

PHP Version : 5.3.8
Apache Version : 2.2.21
GS 3.0
News Manager 2.2.4
Reply
#4
Kate,

this sounds good but I would better test this on a host
I experienced problems with .htaccess on WAMP which did not happen in "real life" ;=)

so make a short test on a life sistem and check whether it is ok there
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#5
I tried installing News Manager on a live testing site, but still have the same problem with pretty URLs. They're still missing a slash between the parent page and post so instead of parent/post/slug I still get parentpost/slug.

My rewrite rules are exactly as Connie suggested above, directly copied and pasted from the News Manager settings for htaccess.

Does anyone else have any suggestions? I really like the plugin but this is driving me mad!

Thanks once again

Kate
Reply
#6
@kate : I have the same problem
Reply
#7
having similar problem, i have a website running GS3.0 with news manager plugin and it is working fine. Now, im building a new website for a new client and just download GS3.1 and same news manager plugin and doesnt work correctly, when i click a news it doesnt open the page with complete news.
Reply
#8
Do you have a custom permalink structure set in GetSimple?
Reply
#9
Carlos Wrote:Do you have a custom permalink structure set in GetSimple?

No i dont. Just basic setup
Reply
#10
What do you get when you click on a news post?

Have you enabled canonical redirect in gsconfig?
Reply
#11
Carlos Wrote:What do you get when you click on a news post?

Have you enabled canonical redirect in gsconfig?

Ohh! my bad, thank you, that was the problem. Now, why the news date is not showing up?
Reply
#12
agittens Wrote:why the news date is not showing up?

Are you using WAMP/XAMPP? See this: http://get-simple.info/forum/post/31331/#p31331

(Anyway, here we're offtopic; better using that thread for News Manager-related issues.)
Reply




Users browsing this thread: 1 Guest(s)