rewrite rules
8 posts by 3 authors in: Forums > CMS Builder
Last Post: July 24, 2012 (RSS)
By Jesus - July 19, 2012
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
Have you searched for rewrite rules here on the forum?
There's some good information.
Jerry Kornbluth
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
Re: [gkornbluth] rewrite rules
By Jesus - July 20, 2012
Yes, but as there are some threads regarding the same thing, I'm kind of confussed right now and all the rules I tried don't work for me. Probably I'm missing something, but I need to solve this as really urls with ? can't be crawled properly.
Thanks
Jesus
PS
BTW, I hope I can move forward with your book soon
Re: [Jesus] rewrite rules
By Jason - July 20, 2012
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
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
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
ver_articulo.php?record_title=$1
I just cant make it work :(
Re: [Jesus] rewrite rules
By Jason - July 24, 2012
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/