Welcome Guest, Not a member yet? Register   Sign In
URL Direction issue
#1

[eluser]MydKnight[/eluser]
Hey guys,

I'm having some trouble getting my URL's formatted how I want. Before I shoot out the link to everyone, I want to warn that the site I am building is for a gay organization. Nothing X-rated, but stay out if this is a problem.

The "root" url of our website is http://www.abcclubs.com/rework/index.php/welcome/index.

If I try to pull up http://www.abcclubs.com/rework/ , it works, but the image links are broken then. When I click index, it goes to the first site.

What I would want ideally is for http://www.abcclubs.com/rework/welcome/index to work in the same way that http://www.abcclubs.com/rework/index.php/welcome/index works now. The problem is, when I try to do the .htaccess file that is listed in the instructions, I cant bring up http://www.abcclubs.com/rework/ or http://www.abcclubs.com/rework/welcome/index. Furthermore, the second url says "cannot find index.php/welcome/index" when I try to pull it up. I figure that as I am copying the suggested htaccess file exactly, I have something wrong in config. Here is my config file:

/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://www.abcclubs.com/rework/
|
*/
$config['base_url'] = "http://www.abcclubs.com/rework/";

/*
|--------------------------------------------------------------------------
| 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'] = '';


There's more..but I think this is where I have something wrong.

Can anyone shed some light on this?
#2

[eluser]Maglok[/eluser]
Could you post that .htaccess? I got a feeling it's in there, cause those settings look good to me.
#3

[eluser]MydKnight[/eluser]
Its just the default:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

I am guessing I am doing something wrong with my link construction if nothing else is incorrect.

So to clarify, I am currently using that, in the root directory of where my rework is (with the system and documentation folders). The URL I am trying to call is:

http://www.abcclubs.com/rework/welcome/index

and the error I get is:

The requested URL /index.php/welcome/index was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.




Theme © iAndrew 2016 - Forum software by © MyBB