Page 1 of 1

remove ?page= from links in pages

Posted: Fri Aug 28, 2009 11:26 am
by tomolastomolas
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

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

Re: remove ?page= from links in pages

Posted: Fri Aug 28, 2009 11:43 am
by Rolf
Hi tomolastomolas,

Try to search the forum for 'pretty url'.
There are a lot of similar threads.

Grtz. Rolf

Re: remove ?page= from links in pages

Posted: Sun Aug 30, 2009 3:26 pm
by matterhornpat
In your config.php file look for the URL Settings, where you can make that change in conjunction with your valid .htaccess file.