pretty URLs
Permalink
I'm filling in properties data and want to enable pretty URLs but don't know how. I get the message 'you need to update .htaccess by hand.' Can someone tell me what to do here?
Hmm. I copied and pasted the code to .htaccess but when I returned to edit>properties I got 'access denied' and was signed out. When I signed back in and went to edit I was immediately signed out again. I then tried replacing the file with the new code but got an error message when I tried to save changes. I restored everything back to the original and things are back to working order but no pretty URLs.
hbenagh
hbenagh
When you say edit > properties, where is that exactly?
To enable pretty URLs you go to Dashboard > System and Settings > Pretty URLs (under SEO and Statistics).
yoursite.com/index.php/dashboard/system/seo/urls/
It might be you need to clear your cache also after activating Pretty URLs.
To enable pretty URLs you go to Dashboard > System and Settings > Pretty URLs (under SEO and Statistics).
yoursite.com/index.php/dashboard/system/seo/urls/
It might be you need to clear your cache also after activating Pretty URLs.
Ok I went to System and Settings>Pretty URLs clicked enable, copied the code and pasted it to .htaccess. I then went back to my website and signed in to edit. I clicked on Properties in edit mode and got 'access denied'. When I went back and deleted the code from .htaccess everything returned to normal.
hbenagh
hbenagh
Ok I went to System and Settings>Pretty URLs clicked enable, copied the
code and pasted it to .htaccess. I then went back to my website and signed
in to edit. I clicked on Propertied in edit mode and got 'access denied'.
When I went back and deleted the code from .htaccess everything returned to
normal.
hbenagh
code and pasted it to .htaccess. I then went back to my website and signed
in to edit. I clicked on Propertied in edit mode and got 'access denied'.
When I went back and deleted the code from .htaccess everything returned to
normal.
hbenagh
There is a known edit issue where you get "Access denied" sometimes (I will try to locate Andrews post on that), and what you do then is just to enter edit, exit edit and enter edit mode again. That might be what is happening to you.
If that is not the case, then I actually don't know why it is behaving as it does.
EDIT: Here is the link to Andrews post: http://www.concrete5.org/community/forums/chat/page-stuck-in-weird-...
The thread is about a "half edit mode", but it might still apply.
EDIT2: It's getting late here... It might not have been Andrew mentioning the "Access denied" part. But what I want to say is, that I have had the same issue and a simple clear cache solved it for me. (seems like I'm just babbling... need to get my sleep).
Anywho, you now got two things to try out - enter-exit-enter edit mode and clear cache.
If that is not the case, then I actually don't know why it is behaving as it does.
EDIT: Here is the link to Andrews post: http://www.concrete5.org/community/forums/chat/page-stuck-in-weird-...
The thread is about a "half edit mode", but it might still apply.
EDIT2: It's getting late here... It might not have been Andrew mentioning the "Access denied" part. But what I want to say is, that I have had the same issue and a simple clear cache solved it for me. (seems like I'm just babbling... need to get my sleep).
Anywho, you now got two things to try out - enter-exit-enter edit mode and clear cache.
Well I tried those things while you were sleeping and still no good. If I click on 'edit this page' I'm immediately signed out and when I sign back in the same thing happens again. I've restored the file to it's original and we're running again (I also cleared the cache). I suppose I can live without pretty URLs.
Anyway, I was in Page Paths and Location in Properties and am puzzled by the Canonical URL. This is a small three page site and I'm filling in properties for the Home page. In this case will the canonical URL be one of the other two pages? The home page is /conc/index.php?cID=1, the second page is/conc/index.php/about - so do I fill in the second page as the canonical URL in this case?
Sweet dreams,
hbenagh
Anyway, I was in Page Paths and Location in Properties and am puzzled by the Canonical URL. This is a small three page site and I'm filling in properties for the Home page. In this case will the canonical URL be one of the other two pages? The home page is /conc/index.php?cID=1, the second page is/conc/index.php/about - so do I fill in the second page as the canonical URL in this case?
Sweet dreams,
hbenagh
Who are you hosting with..??
Some hosts do not paly nice with pretty URL's (GoDaddy for one)
Some hosts do not paly nice with pretty URL's (GoDaddy for one)
When it comes to canonical URLs it refers to the address you put in the address bar.
Lets assume your site can be reached athttp://www.example.com
The canonical URL for your home page should then be justhttp://www.example.com/ and nothing needs to be entered as canonical URL.
To reach your Contact page you should enter 'contact' as canonical URL so the complete canonical URL would then behttp://www.example.com/contact....
Don't use spaces in your canonical URLs, use hyphens instead (about-us).
And also, as 911bob mentioned, some hosts don't play nice with pretty URLs.
Lets assume your site can be reached athttp://www.example.com
The canonical URL for your home page should then be justhttp://www.example.com/ and nothing needs to be entered as canonical URL.
To reach your Contact page you should enter 'contact' as canonical URL so the complete canonical URL would then behttp://www.example.com/contact....
Don't use spaces in your canonical URLs, use hyphens instead (about-us).
And also, as 911bob mentioned, some hosts don't play nice with pretty URLs.
The code probably looks like the one below:
If the file .htaccess doesn't exist in your siteroot, then create the file.
You should also make sure you have loaded the rewrite module in your apache config file (httpd.conf). "LoadModule rewrite_module..." should be uncommented.
(Attached is a zipped .htaccess file in utf8)