new root

Status
Not open for further replies.

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Go to cpanel. Then Click on File Manager.

In public_html folder create a new file named .htaccess

and paste the above code in it.. save it
 
Last edited:

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
just create a .htaccess file in your notepad with the code I posted, and upload it to your site with FTP. You might need to save it as file.htaccess, then rename it to .htaccess from the cPanel file manager. Upload it to your public_html folder
 

kevin1gamer

New Member
Messages
111
Reaction score
0
Points
0
Why are you guys making this a hundred times harder than it actually is? I just want to set it so my server goes to upload
 

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
Can you try this:

Code:
DocumentRoot  /home/ssfree/public_html/Upload

Replace the content in the .htaccess file with that
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
apparently DocumentRoot doesn't work on x10. You should do something with mod_rewrite
 

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
Could you try:

PHP:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?teenhotspot.co.cc$
RewriteCond %{REQUEST_URI} !^/Upload/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /Upload/$1
RewriteCond %{HTTP_HOST} ^(www.)?teenhotspot.co.cc$
RewriteRule ^(/)?$ Upload/index.php [L]

(credit for the code goes to Boss Is The Best)
 
Status
Not open for further replies.
Top