Keyword

Problems with URL rewriting

  • Bart Pluijms
  • Bart Pluijms's Avatar Topic Author
  • Offline
  • Senior Member
More
15 years 1 month ago #73957 by Bart Pluijms
Problems with URL rewriting was created by Bart Pluijms
Hello,

I have some issues with URL rewriting.
My host doesn't accept the normal .htacces, so I have to use URL rewriting.
With K2 there are still some problems with URL rewriting.

Someone an idea?
For example:
This is the normal url:
index.php?option=com_k2&view=$1&layout=$2&task=$3&id=$4&Itemid=$5

it has to be rewriten with something like:
RewriteRule ^/artikel/?view=(.+)&layout=(.+)&task=(.+)&id=(.+)&Itemid=(.+)/ /index.php?option=com_k2&view=$1&layout=$2&task=$3&id=$4&Itemid=$5

But the above one doesn't work. I am not an expert, but maybe you are?

Please Log in or Create an account to join the conversation.

  • nightshiftcreative.com
  • nightshiftcreative.com's Avatar
  • Offline
  • Senior Member
More
15 years 1 month ago #73958 by nightshiftcreative.com
Replied by nightshiftcreative.com on topic Problems with URL rewriting
What do you mean the host does not accept the normal htaccess? Does that mean they do not accept htaccess files at all? Or just not mod_rewrite? Are you having a specific problem or are you trying to get SEF working? What host are you using? Maybe we can be more helpful with that info. :)

Please Log in or Create an account to join the conversation.

  • Bart Pluijms
  • Bart Pluijms's Avatar Topic Author
  • Offline
  • Senior Member
More
15 years 1 month ago #73959 by Bart Pluijms
Replied by Bart Pluijms on topic Problems with URL rewriting
Oke... My host uses the IIRF filter for URL-rewriting. It works just perfect, but I have problems with the rewriting of K2 categories.

K2 items and tags are rewriten on the right way, but categories are giving an error.

So the category url: (build like this:)
index.php?option=com_k2&view=$1&layout=$2&task=$3&id=$4&Itemid=$5

has to be rewriten in something like this:

/category-name/ OR k2/category-name or everything else what's in someway a kind of SEF.

Thank you!

Please Log in or Create an account to join the conversation.

  • nightshiftcreative.com
  • nightshiftcreative.com's Avatar
  • Offline
  • Senior Member
More
15 years 1 month ago #73960 by nightshiftcreative.com
Replied by nightshiftcreative.com on topic Problems with URL rewriting
Is it a Windows or Linux box?

Bart Pluijms said:Oke... My host uses the IIRF filter for URL-rewriting. It works just perfect, but I have problems with the rewriting of K2 categories.
K2 items and tags are rewriten on the right way, but categories are giving an error.

So the category url: (build like this:)
index.php?option=com_k2&view=$1&layout=$2&task=$3&id=$4&Itemid=$5

has to be rewriten in something like this:

/category-name/ OR k2/category-name or everything else what's in someway a kind of SEF.

Thank you!

Please Log in or Create an account to join the conversation.

  • Bart Pluijms
  • Bart Pluijms's Avatar Topic Author
  • Offline
  • Senior Member
More
15 years 2 weeks ago #73961 by Bart Pluijms
Replied by Bart Pluijms on topic Problems with URL rewriting
Sorry for my delayed reply.

My host uses Windows

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum