Author |
Message |
MrHandsome
New Member


Joined: Feb 06, 2019
Posts: 8
|
Posted:
Mon Mar 25, 2019 8:47 am |
|
|
|
 |
neralex
Site Admin

Joined: Aug 22, 2007
Posts: 1775
|
Posted:
Tue Mar 26, 2019 3:29 pm |
|
The RewriteRule will not solve your real problem because you are running after that in much more issues, because as the name it says: it's only a rewrite-rule but you are not changing the file system, which your php-files are using it.  |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
 |
MrHandsome

|
Posted:
Thu Mar 28, 2019 12:50 pm |
|
|
|
 |
MrHandsome

|
Posted:
Wed Apr 24, 2019 4:55 pm |
|
|
|
 |
neralex

|
Posted:
Wed Apr 24, 2019 10:48 pm |
|
When you moved only your installation from the root folder into a subdir, then this isn't need it. You can change simply the nukeurl field in the nuke_config database-table. Your solution affects only the modules but not the rest, so I would recommend to change the nukeurl in the database instead of this. |
|
|
|
 |
MrHandsome

|
Posted:
Thu Apr 25, 2019 12:58 pm |
|
neralex wrote: | When you moved only your installation from the root folder into a subdir, then this isn't need it. You can change simply the nukeurl filed in the nuke_config database-table. Your solution affects only the modules but not the rest, so I would recommend to change the nukeurl in the database instead of this. |
Ok, now I have
/domains/blabla.com/public_html/modules.php //<?php $protocol = ... header("Location: $send");
change to
/domains/blabla.com/public_html/modules.php_ //changing back before
/domains/blabla.com/public_html/blabla_phpBB2 //all old files
Table: nuke_config,
nukeurl = http://www.blabla.com
change to
nukeurl = http://www.blabla.com/blabla_phpBB2
Why is not working with http://www.blabla.com/modules.php?name=Forums&file=viewforum&f=11? |
Last edited by MrHandsome on Thu Apr 25, 2019 1:00 pm; edited 1 time in total |
|
|
 |
neralex

|
Posted:
Thu Apr 25, 2019 1:13 pm |
|
Sorry but you have to describe clearer, what you made and what do you want. You don't need to add code-changes in modules.php... |
|
|
|
 |
MrHandsome

|
Posted:
Fri Apr 26, 2019 5:03 am |
|
|
|
 |
neralex

|
Posted:
Fri Apr 26, 2019 10:37 am |
|
1. Set back your nukeurl to:
sql Code:UPDATE nuke_config SET nukeurl = 'http://www.blabla.com'
|
2. Delete the file: modules.php_ in your root-folder!
3. Add this to the .htaccess-file in your root-folder:
apache Code:RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?blabla.com$
RewriteCond %{REQUEST_URI} !^/blabla_phpBB2/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /blabla_phpBB2/$1
RewriteCond %{HTTP_HOST} ^(www.)?blabla.com$
RewriteRule ^(/)?$ blabla_phpBB2/index.php [L]
|
Viel Erfolg!  |
|
|
|
 |
|