Jump to content

Archived

This topic is now archived and is closed to further replies.

sickendeavour

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

Recommended Posts

Hi

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


      /index.php?section=1

      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 ...

SE

Share this post


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

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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.