PHP
--
Questions
--
Followers
Top Experts
I have a domain name via NO-IP, which is cbsl.ddns.net
I created under wamp\www a directory for my site. It is named CBSL
To access the site, users have to code cbsl.ddns.net/cbsl (otherwise they arrive on the WAMP admin page).
Is there a trick to access the site without mentioning the /cbsl ?
A kind of redirection in Apache to be set up ?
Thanks
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@example.com 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.9 (Win64) PHP/5.5.12 Server at cbsl.ddns.net Port 80
RewriteEngine on
RewriteCond %{HTTP_HOST} ^cbsl.ddns\.net$
RewriteRule (.*) http://cbsl.ddns.net/$1 [R=301,L]
RewriteRule ^$ cbsl [L]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^ddns\.net$
RewriteRule (.*) http://cbsl.ddns.net/$1 [R=301,L]
RewriteRule ^$ cbsl [L]






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^cbsl\.ddns\.net$
RewriteRule (.*) http://cbsl.ddns.net/$1 [R=301,L]
RewriteRule ^$ cbsl [L]
I was thinking about changing the current index.php which is located in the www directory to "call" from there the index.php located in www\cbsl (and rename the actual index.php)

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
I don't think changing index.php is the good way to go, the ,htaccess way should be working...
I am a real beginner with Apache
Can you tell me exactly where I have (and what) to change in the httpd.conf ?
Thanks






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
What will I have to change on my site (during a certain period after which I will suppress my site definitively), on Apache to redirect to that other site instead of mine
To be practical, to site says "cbsl.be"

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
I'd like to answer your question, but best way to do this is to start a new one (if you didn't already)... It's not for the points, don't care about that, but it's EE's policy.
Thanks.
PHP
--
Questions
--
Followers
Top Experts
PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.