Jump to content


Mod_rewrite on Exponent CMS pages with index.php?section=1

  • Please log in to reply
1 reply to this topic

#1 sickendeavour

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 20 September 2006 - 02:13 PM


I am using a CMS called Exponent and want to rewrite each page so that:


      is seen in the browser as:

      /section1.htm or /section1.php

      or something similar which will be search engine friendly.

When I try and do it I get redirected to an error page :(

Can anyone tell me how I can do this using .htaccess file please?

Thanks in advance ...


#2 wildteen88

  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 20 September 2006 - 02:31 PM

You'll wnat to do something like this:
RewriteEngine On
RewriteRule ^section([0-9]+).php$ /index.php?section=$1

Note: the mod_reright module will have to be enabled within the main servers configuration file (httpd.conf)

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users