It looks like you're new here. If you want to get involved, click one of these buttons!
I'm attempting to install on a server and access from another machine on the network. When I access it on the box it is installed on, it works fine. When I try to access it from another machine, I get a "too many redirects" error. I do not get this error if I'm attempting to access just a page (frontend?) but if trying to go to the admin page, I get the error.
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
httpd-vhosts.conf on the server box:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
.htaccess on the server box:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
hosts file on the "other" machine:
10.11.42.153 bgterhome-new
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Address Bar on the other machine when trying to access:
//bgterhome-new/fuel/start
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Tried using the code feature but ended up having to use screenshots. Is there any help somebody could provide?
Comments
Could it be
rewriteBase /fuel/
in your htaccess? Shouldn't it be justrewriteBase /
?The domain is mapped to /c/wamp64/www/fuel and
No. That breaks it on the server and remote. It is in a folder under localhost, not the root, so I think it needs that. It works fine on the server, just not remote.
I wonder if there is a conflict because you have a physical folder called fuel and fuel is the controller to access the backend.
what if you rename the folder to /c/wamp64/www/cms ?
Tried that. No Dice. Thanks for continuing to help
Try to activate the RewriteLog and see what happens.
After doing that I cannot get wamp to start. Apache never starts. If I remove the entry, it works again. Maybe I put it in the wrong place.
Sorry, there was a change[1] this should work, I just tested it myself.
In the log file you should find rewrite related information.[2]
Here is another way to debug htaccess: https://htaccess.madewithlove.be/
[1] http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#logging
[2] See also: https://stackoverflow.com/a/9632952/814031
[Wed Sep 18 07:24:38.899729 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df38e10/initial] [perdir C:/wamp64/www/cms/] strip per-dir prefix: C:/wamp64/www/cms/fuel/start -> fuel/start
[Wed Sep 18 07:24:38.899729 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df38e10/initial] [perdir C:/wamp64/www/cms/] applying pattern '^(fuel/modules/(.+)?/assets/(.+))' to uri 'fuel/start'
[Wed Sep 18 07:24:38.899729 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df38e10/initial] [perdir C:/wamp64/www/cms/] strip per-dir prefix: C:/wamp64/www/cms/fuel/start -> fuel/start
[Wed Sep 18 07:24:38.899729 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df38e10/initial] [perdir C:/wamp64/www/cms/] applying pattern '^(fuel/install/.+|fuel/crons/.+|fuel/data_backup/.+|fuel/codeigniter/.+|fuel/modules/.+|fuel/application/.+)' to uri 'fuel/start'
[Wed Sep 18 07:24:38.899729 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df38e10/initial] [perdir C:/wamp64/www/cms/] strip per-dir prefix: C:/wamp64/www/cms/fuel/start -> fuel/start
[Wed Sep 18 07:24:38.899729 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df38e10/initial] [perdir C:/wamp64/www/cms/] applying pattern '.*' to uri 'fuel/start'
[Wed Sep 18 07:24:38.899729 2019] [rewrite:trace4] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df38e10/initial] [perdir C:/wamp64/www/cms/] RewriteCond: input='C:/wamp64/www/cms/fuel/start' pattern='!-f' => matched
[Wed Sep 18 07:24:38.899729 2019] [rewrite:trace4] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df38e10/initial] [perdir C:/wamp64/www/cms/] RewriteCond: input='C:/wamp64/www/cms/fuel/start' pattern='!-d' => matched
[Wed Sep 18 07:24:38.899729 2019] [rewrite:trace2] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df38e10/initial] [perdir C:/wamp64/www/cms/] rewrite 'fuel/start' -> 'index.php/fuel/start'
[Wed Sep 18 07:24:38.899729 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df38e10/initial] [perdir C:/wamp64/www/cms/] add per-dir prefix: index.php/fuel/start -> C:/wamp64/www/cms/index.php/fuel/start
[Wed Sep 18 07:24:38.899729 2019] [rewrite:trace2] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df38e10/initial] [perdir C:/wamp64/www/cms/] trying to replace prefix C:/wamp64/www/cms/ with /fuel/
[Wed Sep 18 07:24:38.899729 2019] [rewrite:trace5] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df38e10/initial] strip matching prefix: C:/wamp64/www/cms/index.php/fuel/start -> index.php/fuel/start
[Wed Sep 18 07:24:38.899729 2019] [rewrite:trace4] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df38e10/initial] add subst prefix: index.php/fuel/start -> /fuel/index.php/fuel/start
[Wed Sep 18 07:24:38.899729 2019] [rewrite:trace1] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df38e10/initial] [perdir C:/wamp64/www/cms/] internal redirect with /fuel/index.php/fuel/start [INTERNAL REDIRECT]
[Wed Sep 18 07:24:38.899729 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df51530/initial/redir#1] [perdir C:/wamp64/www/cms/] add path info postfix: C:/wamp64/www/cms/fuel/index.php -> C:/wamp64/www/cms/fuel/index.php/fuel/start
[Wed Sep 18 07:24:38.915329 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df51530/initial/redir#1] [perdir C:/wamp64/www/cms/] strip per-dir prefix: C:/wamp64/www/cms/fuel/index.php/fuel/start -> fuel/index.php/fuel/start
[Wed Sep 18 07:24:38.915329 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df51530/initial/redir#1] [perdir C:/wamp64/www/cms/] applying pattern '^(fuel/modules/(.+)?/assets/(.+))' to uri 'fuel/index.php/fuel/start'
[Wed Sep 18 07:24:38.915329 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df51530/initial/redir#1] [perdir C:/wamp64/www/cms/] add path info postfix: C:/wamp64/www/cms/fuel/index.php -> C:/wamp64/www/cms/fuel/index.php/fuel/start
[Wed Sep 18 07:24:38.915329 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df51530/initial/redir#1] [perdir C:/wamp64/www/cms/] strip per-dir prefix: C:/wamp64/www/cms/fuel/index.php/fuel/start -> fuel/index.php/fuel/start
[Wed Sep 18 07:24:38.915329 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df51530/initial/redir#1] [perdir C:/wamp64/www/cms/] applying pattern '^(fuel/install/.+|fuel/crons/.+|fuel/data_backup/.+|fuel/codeigniter/.+|fuel/modules/.+|fuel/application/.+)' to uri 'fuel/index.php/fuel/start'
[Wed Sep 18 07:24:38.915329 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df51530/initial/redir#1] [perdir C:/wamp64/www/cms/] add path info postfix: C:/wamp64/www/cms/fuel/index.php -> C:/wamp64/www/cms/fuel/index.php/fuel/start
[Wed Sep 18 07:24:38.915329 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df51530/initial/redir#1] [perdir C:/wamp64/www/cms/] strip per-dir prefix: C:/wamp64/www/cms/fuel/index.php/fuel/start -> fuel/index.php/fuel/start
[Wed Sep 18 07:24:38.915329 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df51530/initial/redir#1] [perdir C:/wamp64/www/cms/] applying pattern '.*' to uri 'fuel/index.php/fuel/start'
[Wed Sep 18 07:24:38.915329 2019] [rewrite:trace4] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df51530/initial/redir#1] [perdir C:/wamp64/www/cms/] RewriteCond: input='C:/wamp64/www/cms/fuel/index.php' pattern='!-f' => not-matched
[Wed Sep 18 07:24:38.915329 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df51530/initial/redir#1] [perdir C:/wamp64/www/cms/] add path info postfix: C:/wamp64/www/cms/fuel/index.php -> C:/wamp64/www/cms/fuel/index.php/fuel/start
[Wed Sep 18 07:24:38.915329 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df51530/initial/redir#1] [perdir C:/wamp64/www/cms/] strip per-dir prefix: C:/wamp64/www/cms/fuel/index.php/fuel/start -> fuel/index.php/fuel/start
[Wed Sep 18 07:24:38.915329 2019] [rewrite:trace3] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df51530/initial/redir#1] [perdir C:/wamp64/www/cms/] applying pattern '(^|/)\.' to uri 'fuel/index.php/fuel/start'
[Wed Sep 18 07:24:38.915329 2019] [rewrite:trace1] [pid 8976:tid 1324] mod_rewrite.c(482): [client 10.9.42.199:1163] 10.9.42.199 - - [bgterhome-new/sid#2133b4cff48][rid#2133df51530/initial/redir#1] [perdir C:/wamp64/www/cms/] pass through C:/wamp64/www/cms/fuel/index.php
Get this repeating over and over. Not really sure how to read this.
Change .htaccess to
RewriteEngine On
RewriteBase /cms/
And now get 500 error. The "Front Page" works, the admin shows the Internal Server Error.
Didn't see anything in the log unless I'm looking inthe wrong place
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at wampserver@wampserver.invalid to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.35 (Win64) PHP/7.1.22 Server at bgterhome-new Port 80
If yourdomain in http-vhosts.conf maps on C:/wamp64/www/cms/ (and that is the folder where the main index.php gets called from) then
RewriteBase /
in C:/wamp64/www/cms/.htaccess should be just that/
.I compared the rewrite log with my mine and the only difference that I found was
yours:
mine
so my rewrite rule in the htaccess is
and yours is
So maybe that is the culprit?
Also, I don't get why it is rewritten to /fuel/index.php/fuel/app
because C:/wamp64/www/cms/fuel/index.php does indeed sends you back to /start
and this causes the redirect loop.
So I'd say, it's somewhere in your folder structure and htaccess and maybe there is a config file where that sub-folder was added?!
That's all just guesses.
Can you access the following?
http://bgterhome-new/index.php/fuel/login