Welcome Guest, Not a member yet? Register   Sign In
Need help with mod_rewrite and layout -> live vs localhost
#1

[eluser]selman555[/eluser]
Hi all!

I'm having some trouble figuring out why the layout on my localhost (xampp) is different from my live version (www.tong-il-neeroeteren.be)

If you browse to www.tong-il-neeroeteren.be, you will notice that the title starts next to the menu instead of under it.
The menu appears to be lower then it should be...

Also, only the main page seems to load correctly. All links clicked result in an internal server error.
I have mod_rewrite enabled, so I take it it works up to some point...

Any advise you guys can give me?
Perhaps you can provide me with some links, so I can start learning whatever I'm doing wrong Big Grin
#2

[eluser]Mohammed Zayan[/eluser]
I think you have the same problem like me
http://ellislab.com/forums/viewthread/214907/
you will find the answer in the topic, I think.
#3

[eluser]selman555[/eluser]
[quote author="Mohammed Zayan" date="1334096323"]I think you have the same problem like me
http://ellislab.com/forums/viewthread/214907/
you will find the answer in the topic, I think.[/quote]

I appreciate your effort, but this doesn't seem to be the solution for me.
I tried changing my rewriteBase to
/www/tong-il-neeroeteren.be/
/www/tong-il-neeroeteren.be/user/
/www/tong-il-neeroeteren.be/user/start
/user/
/user/start

But nothing seems to work. Any other suggestions?

Here is my .htaccess file
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /user/

    #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]
    
    #When your application folder isn't in the system folder
    #This snippet prevents user access to the application folder
    #Submitted by: Fabdrol
    #Rename 'application' to your applications folder name.
    RewriteCond %{REQUEST_URI} ^application.*
    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]

php_flag short_open_tag off
php_flag magic_quotes_gpc Off
</IfModule>

<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    # Submitted by: ElliotHaughin

    ErrorDocument 404 /index.php
</IfModule>

In my config file, is have set the base_url to ''




Theme © iAndrew 2016 - Forum software by © MyBB