Reputation: 1
I have just re-installed a backup of my website. I want my index.php to function per default.
For example /sedemo/
directory is installed as follows:
Problem:
Before my website crashed I had the folders and files ALL under the /sedemo/
directory. This is the way I still want it - all folders to be under se427
- to make it easier for all future upgrades from socialengine.com.
The way Social Engine had it by default is that ALL FOLDERS/ FILES that are associated with the Social Engine Scripts are placed under sedemo
directory and this the way I still want it as well...and this was what it was before my website crashed.
As such I will appreciate to index.php
such that all required folders are all utilized under sedemo
directory.
In order words, the index.php
"file" should point to the index.php
under the application and then link the public
and "temporary folders all under the httpdocs//sedemo/
as shown below:
httpdocs/.htaccess
httpdocs/index.php
httpdocs/sedemo/application/index.php
sedemo/public/
sedemo/temporary/
Can someone assist with the editing of my index.php
?
Upvotes: 0
Views: 337
Reputation: 1641
to your initial directory put .htaccess
file which will redirect you page into directory you want to be served. You can use also virtual host
to achieve this, without redirecting.
EDIT:
Redirecting with .htaccess
is completely described here.
So for example if you want to redirect /var/www/my_directory_with_index_php
to another directory like /var/www/my_directory_with_index_php/subdirectory/
, just put .htaccess into the first one with rules described in the link above.
You must have mod_rewrite
enabled. See documentation.
The your .htaccesss
file could look like this:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)/my_directory_with_index_php/(.*)$ $1/my_directory_with_index_php/subdirectory/$2 [R,L]
Virtual hosts are described here.
Upvotes: 1