Page URLs
Permalink
Hello, I'm just learning to develop a theme in Concrete5, so bear with me.
I've got C5 installed and working on a site that has a very simple file structure, but with dramatically different looks for each page (as per the request of the client). Getting each page to look right has been fine - I added separate page types, included different php template files for each type, and have got editable areas on each page for the client to add her own text.
My problem is with the URLs of the pages. As I said above, the file structure is very simple: A splash page, a performance page, a modeling page, and an instruction page. What I want is for each page to have URLs like: performance.php, modeling.php, and instruction.php. What I have is URLs like: siteurl.com/index.php?cID=59 (&c.).
I went into the properties for each page and entered the URL I wanted, but that doesn't actually create a page at that URL.
I'm trying to figure out how to change index.php?cID=59 into pagename.php. I've looked at other C5 sites, and they don't have weird sub-index URLs for their pages, so I think it must be possible...?
Help! THANK YOU.
I've got C5 installed and working on a site that has a very simple file structure, but with dramatically different looks for each page (as per the request of the client). Getting each page to look right has been fine - I added separate page types, included different php template files for each type, and have got editable areas on each page for the client to add her own text.
My problem is with the URLs of the pages. As I said above, the file structure is very simple: A splash page, a performance page, a modeling page, and an instruction page. What I want is for each page to have URLs like: performance.php, modeling.php, and instruction.php. What I have is URLs like: siteurl.com/index.php?cID=59 (&c.).
I went into the properties for each page and entered the URL I wanted, but that doesn't actually create a page at that URL.
I'm trying to figure out how to change index.php?cID=59 into pagename.php. I've looked at other C5 sites, and they don't have weird sub-index URLs for their pages, so I think it must be possible...?
Help! THANK YOU.
Just go to your dashboard, select "Sitewide Settings" and check "Enable Pretty URLs" under "Linking".
Then just the following:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
into a .htaccess file in the root directory.
Regards,
André