Welcome Guest, Not a member yet? Register   Sign In
layout question
#1

[eluser]Tripic[/eluser]
Ok I am trying to use roll over images and so far having no luck I have tried css and using .htacess to remove the index.php from the url of my images and nothing seems to be working for me if you can give me any idea of where i am going wrong i would apreciate it.. the add to the page im worrking on is http://www.awesome-winds.com/proto/index.php/blog
#2

[eluser]Brandon Beasley[/eluser]
What does your .htaccess look like?

Have you setup application\config.php to look like this:

$config['base_url'] = "http://www.awesome-winds.com/";
$config['index_page'] = "";
#3

[eluser]Tripic[/eluser]
.htaccess
Code:
<IfModule mod_rewrite.c>

    RewriteEngine On
    RewriteBase /

    ### Canonicalize codeigniter URLs

    # If your default controller is something other than
    # "welcome" you should probably change this
    RewriteRule ^(welcome(/index)?|index(\.php)?)/?$ / [L,R=301]
    RewriteRule ^(.*)/index/?$ $1 [L,R=301]

    # Removes trailing slashes (prevents SEO duplicate content issues)
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)/$ $1 [L,R=301]

    # Enforce www
    # If you have subdomains, you can add them to
    # the list using the "|" (OR) regex operator
    RewriteCond %{HTTP_HOST} !^(www|subdomain) [NC]
    RewriteRule ^(.*)$ http://www.domain.tld/$1 [L,R=301]

    # Enforce NO www
    #RewriteCond %{HTTP_HOST} ^www [NC]
    #RewriteRule ^(.*)$ http://domain.tld/$1 [L,R=301]

    ###

    # Removes access to the system folder by users.
    # Additionally this will allow you to create a System.php controller,
    # previously this would not have been possible.
    # 'system' can be replaced if you have renamed your system folder.
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php/$1 [L]

    # Checks to see if the user is attempting to access a valid file,
    # such as an image or css document, if this isn't true it sends the
    # request to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]

</IfModule>

<IfModule !mod_rewrite.c>

    # Without mod_rewrite, route 404's to the front controller
    ErrorDocument 404 /index.php

</IfModule>

config
Code:
$config['base_url']    = "http://www.awesome-winds.com/proto/";

/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = "";
#4

[eluser]Tripic[/eluser]
ok i think im one the right track but cant seem to get it right i added

Code:
$config['image_url']    = "http://www.awesome-winds.com/proto/images/";
to the cnfig file and i am trying to acess my images like this now but its not working and poping a php error
Code:
&lt;?<img >config->item('image_url');?&gt;art_shoppe_up.jpg" name="Art Shoppe" width="99" height="64" border="0" id="Art Shoppe" />

the error code is
Quote:Parse error: syntax error, unexpected '<' in /homepages/0/d281853266/htdocs/proto/system/application/views/blog_view.php on line 58

I know i should be able to see the problem but aparentley my brain went on vacation and left the rest of me here to try and figure this out
#5

[eluser]Tripic[/eluser]
Ok i figured this out now to clean up the mess i made in the process lol




Theme © iAndrew 2016 - Forum software by © MyBB