Topic: Handling URLS

I have setup my site to remove the .php extensions by using a .htaccess file.  As an example, all the links on my internal pages point to "\about" instead of "\about.php".  This is working great in all browsers.

I setup my site with SimpleCMS and the links will not work.  It says the page cannot be found and I have to navigate through the sitemap and select the .php file directly.

Do you support .htaccess rewrites?  I would like to use this my clients sites but would need to have this working first.  I works fine in PageLime but I prefer your interface.

Thanks!

Daniel

Re: Handling URLS

Hi Daniel, I'll take a look and see if we can get this working for you. Please bare with us.

Re: Handling URLS

Just had an idea on how to get around this temporarily.  I was reading another post of yours about using JQuery to determine when my page is being loaded in SimpleCMS.  I could rewrite the javascript that creates my navigation menu to point to the url with the .php extension.

Thoughts?

-Daniel

Last edited by Daniel12 (05 Apr 2011 01:33:50)

Re: Handling URLS

Hi Daniel, that might work as a quick fix. We're still working on a permanent solution for you that works with your htaccess file.

Re: Handling URLS

Yeah were seeing issues as well with as well... feeling as though we bought the wrong solution for us.  How does SImpleCMS know which file the content is in?  How does it see which file the content is in?  Could be in a PHP include...   Where can I find more info on how to work with a dynamic site?  As well, does the sitemap resolve the dynamic issue with URLs?  Our issue is it always loads index.php, becuase we drive all traffic through index.php.

Not to mention, what if a variable is used to point the include to a certain file, I am thinking that it's not the right solution for us, unless we change our coding.

Last edited by Oyova (19 Apr 2011 13:00:01)

Re: Handling URLS

Hi Oyova, SimpleCMS doesn't parse any of your server-side scripting for obvious security reasons. The system can only edit pages that exist on your FTP server.

SimpleCMS will work with PHP includes but not with dynamic includes that you've described. What I would do is create two files, header.php and footer.php, which container the HTML/PHP for the header/footer of the website. I would then create pages that link to the header/footer. This way the pages exist on the FTP server so SimpleCMS can edit them and you can manage the header/footer in one place.

It sounds like you need ComplicatedCMS if you wish to continue using your setup. Unfortunately we cannot cater for the different ways websites are built.

Re: Handling URLS

Hi Simon, long time no write. I'm +1:ing Daniel12's original post. Are you still on this? Kindly, T

Re: Handling URLS

Hi Tobias, we are still planning this one.

Re: Handling URLS

Has there been any more research on this? I too am using .htaccess to hide the .html and .php extensions. The links on the site now point to "http://domainname.com/about" but simplecms simply doesn't work any more.

I'd like to use this for SEO purposes so does simplecms have a solution they could recommend?

Re: Handling URLS

Hi Guys, we've just come up with a possible solution which we will get implemented over the next week.

Re: Handling URLS

What happened with this? I feel like every solution takes months and months to resolve

Re: Handling URLS

As well as running SimpleCMS we also do work for other clients; whilst this is not an excuse for being a little slow sometimes, it is the reason.

We will get something up-and-running soon.