2013-04-19, 04:21:28
So, I've conquered the layout issue when I discovered I could create a new page with a different template file for the blog post. Yay!
I think I have the fancy urls *almost* completely conquered BUT there is a glitch in how the URL is rendered which I can't say is or is not rewrite rule related or script related.
The test page with the blog can be seen here (still not prettied up, but that's the least of my worries):
I think, the line that might be causing me issues is Line 14, frontEndFunctions.php (in the inc folder)
The URLs are being rendered as which results as a 404 (as one would expect).
The URL should be rendered as
which results in the display of the article.
And my htaccess if you think that's the issue. I'm not opposed to hard-coding the start of the URL if that solves the problem. I know it removes some flexibility but I'm stuck on how to modify that declaration on line 14. This isn't a style I remember from when I actually did more with php than I do now.
I'm going to go and see if more research solves the problem but I would love it if someone has either a gentle nudge in the right direction or a solution. :-)
I think I have the fancy urls *almost* completely conquered BUT there is a glitch in how the URL is rendered which I can't say is or is not rewrite rule related or script related.
The test page with the blog can be seen here (still not prettied up, but that's the least of my worries):
Code:
http://dianajo.com/getsimple/news.html
I think, the line that might be causing me issues is Line 14, frontEndFunctions.php (in the inc folder)
Code:
$url = $Blog->get_blog_url('post').$post->slug;
The URLs are being rendered as
Code:
http://dianajo.com/getsimple/news-post.htmlpost/demystifying-management-consulting
The URL should be rendered as
Code:
http://dianajo.com/getsimple/news-post/post/demystifying-management-consulting
And my htaccess if you think that's the issue. I'm not opposed to hard-coding the start of the URL if that solves the problem. I know it removes some flexibility but I'm stuck on how to modify that declaration on line 14. This isn't a style I remember from when I actually did more with php than I do now.
I'm going to go and see if more research solves the problem but I would love it if someone has either a gentle nudge in the right direction or a solution. :-)
Code:
AddDefaultCharset UTF-8
Options -Indexes
# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
Order allow,deny
Deny from all
Satisfy All
</Files>
<Files sitemap.xml>
Order allow,deny
Allow from all
Satisfy All
</Files>
RewriteEngine on
# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /getsimple/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)\.html$ index.php?id=$1 [QSA,L]
# do not do any rewriting to this file
RewriteRule news-post\.php$ - [L]
RewriteRule ^(.+)\.html$ http://www.dianajo.com/getsimple/$1.php [R=301,L]
RewriteRule ^news-post/post/([^/.]+)/?$ index.php?id=news-post&post=$1 [L]
RewriteRule ^news-post/tag/([^/.]+)/?$ index.php?id=news-post&tag=$1 [L]
RewriteRule ^news-post/page/([^/.]+)/?$ index.php?id=news-post&page=$1 [L]
RewriteRule ^news-post/archive/([^/.]+)/?$ index.php?id=news-post&archive=$1 [L]
RewriteRule ^news-post/category/([^/.]+)/?$ index.php?id=news-post&category=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)\.html$ index.php?id=$1 [QSA,L]