Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2010-10-12 22:10:29
- Enor
- Member
- From: London, UK
- Registered: 2010-09-02
- Posts: 26
Images are not displayed
Hi
This is an urgent plea for someone who I hope has the answer too…
I changed my Permanent link mode in Textpattern from ?=messy to /section/title and my home page looks fine:
http://www.perfect-layout.com/
But when you click on the other pages such as, http://www.perfect-layout.com/about/ the images do not come though but they do if you try the URL http://www.perfect-layout.com/about (that is if you remove the forward slash).
When I had ?=messy URLs on all the images were coming through across all the pages…
I contacted my hosting company and they said I should contact a rewrite rule specialist…WTF!!!!!
I have this in my .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* – [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
Is there something missing or needs to be added for this to work???
Please anyone, can you help? My site is live and I need this issue resolved asap as anyone accessing my website will see this technical issue :(
Regards
Enor
(Changed topic title from Help!!!!!!!!!!!!!!!!!!!!!!! to something more descriptive. Don’t do that again, it’s a miracle you even got replies… -Els)
Last edited by els (2010-10-12 23:03:36)
Offline
#2 2010-10-12 22:32:52
- RalphFFM
- Member
- Registered: 2008-10-05
- Posts: 40
Re: Images are not displayed
Try for example
src=”/images/site-objects/logo.png”
instead of
src=“images/site-objects/logo.png”
..
PS: Next time please use a descriptive title.
PPS: Because you like these: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ;-)
Offline
Re: Images are not displayed
Better yet, use <txp:site_url />
in all such values, for maximum portability.
e.g.,
<img src="<txp:site_url />images/site-objects/logo.png" />
Code is topiary
Offline
Re: Images are not displayed
I contacted my hosting company and they said I should contact a rewrite rule specialist…WTF!!!!!
That’s actually a good suggestion. I had my VPS host “help” me with my .htaccess and they ended up taking down my entire site. Luckily it was only a beta site, but still…glad I had backups :-)
Offline
#5 2010-10-12 23:40:25
- Enor
- Member
- From: London, UK
- Registered: 2010-09-02
- Posts: 26
Re: Images are not displayed
Hi guys
Thank you for your answers….I used <txp:site_url /> and everything is working ok now :)
Offline
#6 2010-10-13 09:14:56
- Enor
- Member
- From: London, UK
- Registered: 2010-09-02
- Posts: 26
Re: Images are not displayed
Oh one more thing…does anyone know as to why when I click on a category on the right side from my blog:
http://www.perfect-layout.com/blog/
That is it displays the URL as this for example:
http://www.perfect-layout.com/blog/?c=events
I thought it should be http://www.perfect-layout.com/blog/category/events as I am not using ?=messy but /section/title?
Offline
Re: Images are not displayed
Unfortunately that’s as clean as Txp’s URLs get for section-specific category context.
Code is topiary
Offline
Pages: 1