SEO for Instant Website

4 posts by 3 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: May 19, 2011   (RSS)

By Christopherb - May 18, 2011

Is it possible to eliminate the record number within the url string?

for example:
/Dolor-Sit-Amet-9

to

/Dolor-Sit-Amet

Re: [gkornbluth] SEO for Instant Website

By Christopherb - May 18, 2011

The way the re-writes currently work, yes. However we have several non-cmsbuilder php driven sites that use friendly urls with mod_rewrite (dropping the ?query string and using ONLY the alias).

I'm thinking something like:

RewriteEngine On
rewritecond %{REQUEST_URI} !^/page/(.*)
rewritecond %{REQUEST_URI} !^/images/(.*)
RewriteRule (.*)$ /page/page.php? id=$1


Thanks,
Chris

P.S.
I use your cookbook all the time as a quick reference! Nice compilation

Re: [Christopherb] SEO for Instant Website

By Jason - May 19, 2011

Hi Chris,

You can try something like that, but the script still needs to be able to access that record number (usually from the $SERVER['QUERY_STRING'] variable) in order to pull the correct record from the database.

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/