Free Web Hosting Forum
Go Back   Free Web Hosting Forum > Website Building > Web Design and HTML
Reload this Page help build my website using codeigniter
Reply
 
Thread Tools Display Modes
(#11 (permalink))
Old
ShocK's Avatar
Senior Member
ShocK is on a distinguished road
 
Posts: 4,065
Join Date: Jul 2011
Location: UK
Default 08-12-2012, 01:52 PM

So you now want to keep it in the folder called OnlineShop and in that folder you have a file called index.php? Change .htaccess to

Code:
RewriteBase /
DirectoryIndex OnlineShop/index.php
Reply With Quote
Sponsored Links
(#12 (permalink))
Old
Banned
www.greenfive.tk is on a distinguished road
 
Posts: 21
Join Date: Aug 2012
Location: In the pub
Default 08-12-2012, 03:34 PM

Chmod the files and folders which you want to make visible but not rewritable for others

Example for this kind of Chmod is to set them 644.
Make sure that the CSS loading the elements of the main page correctly and they exist "images & pages". If you got a backup of your site including MySQL (in case you got DB) will help you a lot to restore him. I don't understand why you using 1 more folder (onlineshop) in your root folder?!

Last edited by www.greenfive.tk; 08-12-2012 at 05:01 PM.
Reply With Quote
(#13 (permalink))
Old
Junior Member
reinzzz is on a distinguished road
 
Posts: 9
Join Date: Aug 2012
Default 08-13-2012, 01:02 AM

Quote:
Originally Posted by www.greenfive.tk View Post
Chmod the files and folders which you want to make visible but not rewritable for others

Example for this kind of Chmod is to set them 644.
Make sure that the CSS loading the elements of the main page correctly and they exist "images & pages". If you got a backup of your site including MySQL (in case you got DB) will help you a lot to restore him. I don't understand why you using 1 more folder (onlineshop) in your root folder?!
so i can delete OnlineShop folder ?
i already tried without using OnlineShop folder but got error
if i didn't use OnlineShop folder, how i can call the main.php in controller ?

Quote:
Originally Posted by ShocK View Post
So you now want to keep it in the folder called OnlineShop and in that folder you have a file called index.php? Change .htaccess to

Code:
RewriteBase /
DirectoryIndex OnlineShop/index.php
i already change like u told but nothing change, and the error too

Last edited by reinzzz; 08-13-2012 at 01:07 AM.
Reply With Quote
(#14 (permalink))
Old
ShocK's Avatar
Senior Member
ShocK is on a distinguished road
 
Posts: 4,065
Join Date: Jul 2011
Location: UK
Default 08-13-2012, 06:46 AM

So your site homepage is called main.php? (you could take a screenshot of what you've uploaded, save people having to guess) and main.php is in the folder called OnlineShop?

Then
Code:
RewriteBase /
DirectoryIndex OnlineShop/main.php
Reply With Quote
(#15 (permalink))
Old
Junior Member
reinzzz is on a distinguished road
 
Posts: 9
Join Date: Aug 2012
Default 08-13-2012, 10:48 AM

i want to use main.php in controller

OnlineShop/system/application/controllers/main.php

sorry, i dun know how to attach image, the server always give the invalid link

Last edited by reinzzz; 08-13-2012 at 10:52 AM.
Reply With Quote
(#16 (permalink))
Old
ShocK's Avatar
Senior Member
ShocK is on a distinguished road
 
Posts: 4,065
Join Date: Jul 2011
Location: UK
Default 08-13-2012, 10:58 AM

I'm not sure what you're trying to install but are you saying this is your homepage?

http://sinarjayamobil.netai.net/Onli...llers/main.php

Where did you get this script?
Reply With Quote
(#17 (permalink))
Old
d3iti's Avatar
Super Moderator
d3iti is on a distinguished road
 
Posts: 6,487
Join Date: Jul 2009
Location: Spain
Default 08-13-2012, 11:42 AM

Hello,

CodeIgniter is a framework for websites using the Model-View-Controller pattern.

In the Spanish section of the forum, another user had a similar problem and solved it as follows:

"All you have to do is create an .htaccess file in the same level as the directory that make up the example application, system, index.php.

With the following code:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
I hope this shed some light on the solution of the problem.


Recuerda realizar copias de seguridad de tus sitios web. Si este mensaje te ayudó puedes pulsar sobre el botón karma
Reply With Quote
(#18 (permalink))
Old
Junior Member
reinzzz is on a distinguished road
 
Posts: 9
Join Date: Aug 2012
Default 08-13-2012, 01:38 PM

Quote:
Originally Posted by ShocK View Post
I'm not sure what you're trying to install but are you saying this is your homepage?

http://sinarjayamobil.netai.net/Onli...llers/main.php

Where did you get this script?
yea, that's my homepage..

http://sinarjayamobil.netai.net/Onli...llers/main.php

i already tried in local with that link and i use codeigniter,, and now i want to implement in online

Quote:
Originally Posted by d3iti View Post
Hello,

CodeIgniter is a framework for websites using the Model-View-Controller pattern.

In the Spanish section of the forum, another user had a similar problem and solved it as follows:

"All you have to do is create an .htaccess file in the same level as the directory that make up the example application, system, index.php.

With the following code:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
I hope this shed some light on the solution of the problem.
what this code do ?

RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com