remove ?page= from links in pages

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
tomolastomolas
New Member
New Member
Posts: 9
Joined: Tue Jul 08, 2008 1:40 pm

remove ?page= from links in pages

Post 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
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: remove ?page= from links in pages

Post by Rolf »

Hi tomolastomolas,

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

Grtz. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
matterhornpat
Forum Members
Forum Members
Posts: 49
Joined: Wed Jul 11, 2007 7:55 pm

Re: remove ?page= from links in pages

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

Return to “[locked] Installation, Setup and Upgrade”