my site is rohit267.000webhost.com, i want to access my site from rohit267.000webhost.com/specif_folder/index.php but got error 404.
Your website it rohit267.000webhostapp.com.
You can either copy the entire site to /public_html
and access the address directly, or you can add a directive to /public_html/.htaccess
to redirect to your folder:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?rohit267.000webhostapp\.com$ [NC]
RewriteRule !^FOLDER/ /FOLDER%{REQUEST_URI} [L,NC]
Replace FOLDER
with the desired directory.
internal server error
tried
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?rohit267.000webhostapp.com$ [NC]
RewriteRule !^$/ /speedtest%{REQUEST_URI} [L,NC]
This should be the code
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?rohit267.000webhostapp\.com$ [NC]
RewriteRule !^speedtest/ /speedtest%{REQUEST_URI} [L,NC]
well thnx for reply but the above code gave me 404
Your website content must be located in /public_html
.
You must move /speedtest
to /public_html
.
no…my speedtest folder is in the root directory where the public_html is located
please provide me the code for that
thanks in advance
Everything located outside /public_html
is inaccessible to the browser.
In other words, /public_html
is your website root.
Ok, so to clarify…
You want people to access rohit267.000webhostapp.com and redirect them to http://rohit267.000webhostapp.com/speedtest/index.php, this address to be shown in browser as well?
PS: your website is now displaying properly…
I think the problem comes from your browser… Go to your website and press CTRL+F5
i am on chrome unbuntu
Please post a screenshot.
see
its working but not after that
I’ve modified your .htaccess
.
Your website should now work
thnx man…love you…