Problem between css and Custom URLs

Problem between css and Custom URLs

Postby mejia on Mon Dec 12, 2005 11:38 pm

I put this code in .htaccess:

ForceType application/x-httpd-php

ErrorDocument 401 /plog/error.php
ErrorDocument 403 /plog/error.php
ErrorDocument 404 /plog/error.php

and now custom urls work but i loose the link to my style.css file
so Obviously it is a problems with path.

in the header template the css is calling in this way:

<link rel="stylesheet" title="default" type="text/css" media="screen" href="{$url->getTemplateFile("style.css")}" />

any idea how i can fix it?

may be with a direct path?
mejia
 
Posts: 117
Joined: Tue Jun 15, 2004 7:43 pm
Location: mexico

Postby phunkphorce on Tue Dec 13, 2005 2:58 am

I think you are now serving *everything* as PHP files. Please read the Apache documentation:http://httpd.apache.org/docs/1.3/mod/mod_mime.html#forcetype
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa

so, the next step is

Postby mejia on Tue Dec 13, 2005 7:00 pm

i only need to transform the php files? transform in what?

in the link there is a example

# force all files to be image/gif:
<Location /images>
ForceType image/gif
</Location>

to convert every file in a directory in a gif

but in this case i what to translate index.php into?
mejia
 
Posts: 117
Joined: Tue Jun 15, 2004 7:43 pm
Location: mexico

Postby jondaley on Wed Dec 14, 2005 9:05 am

Why are you editing the .htaccess file? The defaults weren't working?
jondaley
Lifetype Expert
 
Posts: 6142
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Postby phunkphorce on Wed Dec 14, 2005 9:26 am

I really don't know what you're trying to do. Why did you have to make those changes in the .htaccess file in the first place?
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa

im trying

Postby mejia on Wed Dec 14, 2005 12:24 pm

to configure "Search Engine friendly" URLs in my blog, in the support section say:

This feature only works on Apache servers and requires that .htaccess files are allowed. If this is the case, make sure that *ForceType* and *ErrorDocument* directives can be used within .htaccess files

i ask to my hosting company and they say i can use this options but the only way i can affect the apache server in my host is with .htaccess, now im trying to implement this Search Engine friendly urls (not so friendly to implement hehe) so i need some kind of intructions in the .htaccess file if you watch in my first post i put this code and the urls work but the css disapear so i think i need something more specific[/b]
mejia
 
Posts: 117
Joined: Tue Jun 15, 2004 7:43 pm
Location: mexico

Postby jondaley on Wed Dec 14, 2005 2:36 pm

They should work by default. Go back to the original .htaccess, and then try the URLs and see if they don't work, and then ask your question again. There are very few reasons you would need to modify the .htaccess, and search engine friendly URLs isn't one of them.
jondaley
Lifetype Expert
 
Posts: 6142
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Postby phunkphorce on Thu Dec 15, 2005 3:19 am

As Jon says, there is no need to modify anything at all in the .htaccess except the last part of it where it configures the ErrorDocument thingie. Just make sure that the path referred there is valid:

Code: Select all
ErrorDocument 401 /plog/error.php
ErrorDocument 403 /plog/error.php
ErrorDocument 404 /plog/error.php


If LT is not installed under "/plog/", change those paths.

Anything else, don't touch it :)
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa


Return to Templates