Hi there...hopefully an easy one.
I have a blog site, which I created using the blog tutorial located here:
http://rtfm.modx.com/display/revolution20/Creating+a+Blog+in+MODx+Revolution
All’s working fine and it’s now time to get the site to show pages as URL friendly. The problem is that most pages of the site are showing the URLs friendly (showing the entries I put in the Resource Alias field). The main pages are showing URLs fine...the blog pages are showing them fine...every page except the page that shows the listing of all articles. It still shows the URL as:
http://www.domain.com/index.php?id=4
Why would that be? I did the following:
1. Set the .htaccess file to read:
# Friendly URLs Part
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} .
# Force all pages to go to www.domain.com for SEO
RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC]
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
# Friendly URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# Additional Settings Follow
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
BrowserMatch "MSIE" brokenvary=1
BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
BrowserMatch "Opera" !brokenvary
SetEnvIf brokenvary 1 force-no-vary
(yes, the ’domain’ in my actual .htaccess file is my actual domain) and uploaded to root.
2. I’ve got this in the head:
<base href="[[!++site_url]]" />
3. In system settings, I have ’Use Friendly URLs’ checked. I did try the system with ’Check for Duplicate ULIs Across All Contexts’ and ’Use Friendly Alias Path’ both set to ’yes’ but no luck.
4. Added my choice of URL friendly name in the Resource Alias field field.
Anything I’m missing that you can see? Thank you in advance.
Revo 2.1.3
PHP Version 5.2.17