Re: site.com/content.php?page=XXX to site.com/XXX

  • 2008/12/31 15:42:54
  • Reda

Your Latest code MrTheme doesnt work, it give 404 error

Topic


Re: site.com/content.php?page=XXX to site.com/XXX

  • 2008/12/31 11:46:00
  • Will

very cool - i did run into a little problem with accessing my domain if I didn't have anything trailing.

So mysite.com/ would redirect to the content manager and say "page does not exist - then send me to index.php

A rule would need to be added for the toplevel.

Topic


Re: site.com/content.php?page=XXX to site.com/XXX

Excellent, now the next step would be to generate SEO friendly links from the content manager itself. Meaning that all links in the content menu for example should be conforming the SEO friendly way. Preferrably this should be based on a variable configuration parameter.

Quick and dirty would be something like:

If admin choses to use the rewrite rule in a .htaccess file, all url's to content pages should be rewritten from: site.com/content.php?page=XXX to site.com/XXX

In order to do that we need to change the files:
content.php
modules/system/blocks/content_blocks.php
include/functions.php

In the first two files change the line:

$content_subs['link'] = ICMS_URL.'/content.php?page='.$seo;

to:
$content_subs['link'] = ICMS_URL.'/'.$seo;


In include/functions.php in function showNav() change the line:
$url = ICMS_URL.'/content.php';

into:
$url = ICMS_URL.'/'

And the line:
$ret = "<a href='".$url."?page=".$seo."'>".$cont->getVar('content_title')."</a>";

into:
$ret = "<a href='".$url.$seo."'>".$cont->getVar('content_title')."</a>";

Topic


Re: site.com/content.php?page=XXX to site.com/XXX

  • 2008/12/31 10:06:22
  • Will

makes sense to me, and you are correct - so the final working code is

Options +FollowSymlinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]+)$ /content.php?page=$1 [P,NC]

Topic


Re: site.com/content.php?page=XXX to site.com/XXX

Quote:

You are going to need an identifier like /content/ or /page/ otherwise anything that comes after your domain is going to be forced into the loop.



Yes, logfically the procedure could be:

1. check if url exists, if true then don't rewrite the url
2. If url does not exist: use rewrite rule

I have read on a site that #1 is done by:
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f

Topic


Re: site.com/content.php?page=XXX to site.com/XXX

  • 2008/12/31 9:56:11
  • Will

I was just playing around with it - and its totally possble - this is actually working code. Modify to your needs.

Options +FollowSymlinks RewriteEngine on RewriteRule ^content/([^/]+)$ /content.php?page=$1 [P,NC]


You are going to need an identifier like /content/ or /page/ otherwise anything that comes after your domain is going to be forced into the loop.

i.e. http://www.yoursite.com/modules... will become http://www.yoursite.com/content.php?page=modules...

so if you use the "content" or "page" identifier it would prevent this.

Edit: See Below

Topic


Re: site.com/content.php?page=XXX to site.com/XXX

If you can use rewrite rules all you need is a little bit of hacking actually.

1. Check if the url is a valid url. If so then don't do anything.
2. If not a valid url: rewrite the url from site.com/XXX to site.com/content.php?page=XXX

.htaccess code should be something like:

Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([a-zA-Z0-9_]*)$ content.php?page=$1 [NC,L]


This has not been tested yet but you can give it a try. On the following link you can find a few useful examples:

http://httpd.apache.org/docs/1.3/misc/rewriteguide.html

Topic


Re: site.com/content.php?page=XXX to site.com/XXX

  • 2008/12/31 9:26:33
  • Will

why isn't it doable?

Shouldn't this work just fine?

RewriteRule ^content.php?page=XXX$ /XXX/ [R]

Topic


Re: site.com/content.php?page=XXX to site.com/XXX

yes this is the optimal rewrite engine, but at the moment not doable ...
maybe later with an impresscms node system.

online shop | ImpressCMS Blog
Topic


site.com/content.php?page=XXX to site.com/XXX

  • 2008/12/31 6:58:17
  • Reda

Hello,

I want to change my site.com/content.php?page=XXX links to site.com/XXX , with using Rewriting Url.

What is the code that i've to use to do that !

thank you

Topic


Re: ImpressCMS, another Spin Off Success ?

  • 2008/12/22 19:55:34
  • dbman

Quote:

Thank you very much, dbman. Why not help us improve ImpressCMS some more? As a matter of fact... I was installing ImpressCMS a lot this weekend and I see some room for improvement. More on this later. I like the article, by the way, but it shows that we still have a long way to go to impress more people...



I will contribute if I can, seems like a great community here! I recognize a lot of familiar names from xoops :)

Regarding the review of impress in particular the installation process, give modx a spin and I think you'll disagree with the reviewer's comments.

I've installed pretty much every cms that will run on a *nix system and the steps are pretty much identical for each. Modx has compounded a few steps into a single screen but all the same steps are there. Truthfully there are no shortcuts, from an installation process you must do the same upload, file permission change, database installation/configuration walk through.

I host 50+ xoops installs and always wonder what this must be like for the non-technical end user. Tom is correct, feedback good, bad or indifferent is always good. If you want to tune up the installation process sit a newbie in front of the keyboard and ask them to install impress with the provided documentation and on screen help. This is truly valuable feedback.

Topic


Re: ImpressCMS, another Spin Off Success ?

  • 2008/12/22 14:02:38
  • Tom

I personally didn't see anything negative there, just some good feedback.

I would say there are something in the install which could be simplified a little further requiring fewer screens. I think without checking that we currently have some 10 screens.

The reviewer had some valid points which will be taken on board, in fact it was only perhaps a week ago I believe we had a discussion about the default theme and made the decision that in the 1.2 release the theme will be changed.

ImpressCMS Media Kit - Spread The Word!
Topic


Re: ImpressCMS, another Spin Off Success ?

Thank you very much, dbman.
Why not help us improve ImpressCMS some more?

As a matter of fact... I was installing ImpressCMS a lot this weekend and I see some room for improvement.
More on this later.

I like the article, by the way, but it shows that we still have a long way to go to impress more people...

Topic


Re: ImpressCMS, another Spin Off Success ?

  • 2008/12/21 21:19:19
  • dbman

imo its all good!

The only semi-negative reference is with the look and feel of the user interfaces. The reviewer is somewhat accurate in reference here, no reflection on the UI developers as ImpressCMS is really improving in this area. However functionality far outweighs the flash in the end its about delivering content to the enduser not about dazzling them with latest and greatest javascript,dhmtl and ajax magic.

The reference to the installation process is unfounded. In reality the both xoops and impresscms installations are far more logical then the reference cms, MODx. Reducing the number of screens is not more efficient, in fact I would think it's more confusing to the inexperienced user.

All in all it's a positive review, the strong points of any cms were touted (features, module settings, content management, user and groups access, tags, security and document management).

Congrats to the developers and support folks involved with ImpressCMS.

Topic


Re: ImpressCMS, another Spin Off Success ?

  • 2008/12/21 18:42:40
  • nekro

Half good comments... half not so good comments... but a good final not?


Ohloh profile for nekro
Topic


ImpressCMS, another Spin Off Success ?

A nice little review by Hazel Notes:
http://www.hazelnotes.com/2008/12/impresscms-another-spin-off-success/

Marc-André Lanciault
Founder and CEO INBOX International inc.
Co-Founder ImpressCMS
Topic


Re: JahArt Studio - Top 40 CMSs

it depends on their criteria for how they judge which is the best. it's all subjective..

Live as if you were to die tomorrow, Learn as if you were to live forever

The beauty of a living thing is not the atoms that go into it, but the way those atoms are put together!
Topic


Re: JahArt Studio - Top 40 CMSs

  • 2008/11/29 8:32:13
  • david

None what so all really - and it's certainly not a spotlightable piece of news - but I saw this url on the xoops site .. and thought it was nice of them to point to ourselves as well

Topic


Re: JahArt Studio - Top 40 CMSs

I can make a list with 40 top CMS and list iCms at first.

My question is: what is the importance of this list?

VIL3/trabisdementia
Topic


JahArt Studio - Top 40 CMSs

  • 2008/11/29 7:25:50
  • david

Nice to see we get a reasonable position here

http://jahartstudio.com/?p=344

Topic



 Top