rewrite rules

8 posts by 3 authors in: Forums > CMS Builder
Last Post: July 24, 2012   (RSS)

By Jesus - July 19, 2012

Hi,

I've been checking some cms webites and I noticed that rewrite rules needs to be applied in order to get urls crawled properly.

Right now I'm using this format and I need some help to properly create my rewrite rule.

/accesando/ver_articulo.php?article-name

Thanks for your help and pointing me to the right direction. This its a most have it issue I need to resolve to finish my website move from AM2 to my new CMSB.

Jesus

Re: [Jesus] rewrite rules

By gkornbluth - July 20, 2012

Hi Jesus,

Have you searched for rewrite rules here on the forum?

There's some good information.

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [Jesus] rewrite rules

By Jason - July 20, 2012

Hi Jesus,

All modern search engines, including Google, have no problem crawling URLs that have question marks in them.

If you would like some more information on how to use .htaccess to remove the question mark, try this [url http://www.google.ca/#hl=en&sclient=psy-ab&q=.htaccess+%2B+remove+question+mark+from+URL&oq=.htaccess+%2B+remove+question+mark+from+URL&fp=dfc60defedc2f35c] Google Search[/url]

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] rewrite rules

By Jesus - July 23, 2012 - edited: July 23, 2012

Hi,

I'm trying to make this SEF rewrite rule to work, but still no luck.

I'm using this code:

RewriteRule ^./accesando/([-a-zA-Z0-9]+)$ /accesando/ver_articulo.php?$1 [L,NC]

As I'm having too much headaches with this thing I've a question, probably this will be much faster.

On AM2, I used to have a field named: Filename . Filename was a text file that I used precisely to give each article the name I wanted to display.

Any toughs? I'll love to use the simpler method to remove the ver_articulo? part of my article name in order to keep this more search engine friendly possible.

Thanks in advance.

Jesus

Re: [Jesus] rewrite rules

By Jesus - July 23, 2012 - edited: July 24, 2012

ok, I just need to know the key value I'm replacing on my rewrite rule.

Is it possible to get a hint or to know exactly where I should look to get that value?

Something like this?
ver_articulo.php?_link=$1

Thanks in advance!

Re: [Jesus] rewrite rules

By Jesus - July 24, 2012

Is the correct key?

ver_articulo.php?record_title=$1

I just cant make it work :(

Re: [Jesus] rewrite rules

By Jason - July 24, 2012

Hi Jesus,

I'm not sure what URL variables you need to be passing. This depends on how your page is set up and what information you want to be able to pass to it.

.htaccess rewrite rules tend to get complicated quickly and goes beyond what we are able to address in the forum. If you would like us to try to solve this for you, please send an email to consulting@interactivetools.com and we can go over some options.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/