remove ?page= from links in pages
Posted: Fri Aug 28, 2009 11:26 am
Hi!
I would like to be able to remove ?page=xyz from links in my content pages.
from www.abc.com/?page=my-page to www.abc.com/my-page
I know that following .htaccess file will take me from ...?page=my-page to .../my-page
But I would like to make the change inside menu and all the links inside my pages.
I am no too good with .htaccess, anyway it's most probably a thing I have to change somewhere in configuration inside cms.
Is there a way to do this ?
Thank you in advance.
Tomas
I would like to be able to remove ?page=xyz from links in my content pages.
from www.abc.com/?page=my-page to www.abc.com/my-page
I know that following .htaccess file will take me from ...?page=my-page to .../my-page
Code: Select all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# RewriteCond %{SERVER_NAME} !^www\.abc\.com
# RewriteRule .* http://www.abc.com [R=301,QSA,L]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule (.*) index.php?page=$1 [QSA,L]
</IfModule>
I am no too good with .htaccess, anyway it's most probably a thing I have to change somewhere in configuration inside cms.
Is there a way to do this ?
Thank you in advance.
Tomas