I faced a problem "clean url" procedure in 000webhost when did the Drupal installation. Now, I has already managed those problem.

These are the procedure:
1. First go to this link: http://www.000webhost.com/
2. Do the registration ; making a new one would be good
3. Enter to the member area
4. Go to this link: http://members.000webhost.com/analytics.php?action=login
5. Disable the analytic of the 000webhost
6. You could do the clean URL right now

note:
the .htaccess and the drupal installation program has already upload to the public_html folder of the 000webhost.

bye,

anthony
http://solomid.co.cc

Comments

marcel66’s picture

I have faced the same problem, I have followed your indication, I have to edit a little .httacces (I have enabled:

RewriteBase /

and now I'm happy too.

For anyone who also need to enable RewriteBase /

Thank you all,
Marcel

deng17’s picture

Thanks for the info. I never thought it was as easy as that.

eacevedo’s picture

Thanks anthony, it worked for me

napounet’s picture

Worked fine for me too. Thanks.

Be careful however if Drupal is installed in a sub directory, you should add RewriteBase /nameofyourdirectory.

blekc’s picture

But if this sub directory is tied to a sub domain, then use "RewriteBase /" since this directory *is* the root for the sub domain.

alf1230’s picture

That was so easy!! I went to the link and disabled analytics on my existing site. logged into my drupal site and enabled clean URL's. it didn't change right away but the next day it was changed, and all my URLs were clean!! Thanks to Anthony!

codeglyph’s picture

For me it was just enough to un-comment the

RewriteBase /
in .htaccess

this is the 000webhost code

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->

i guess at hosting24.com it's just a counter. i can't see the connection to the clean url s .

anyway it's strange enough. as far as i remember i didn't need RewriteBase on a joomla deployment i keep on the same hosting ...

:-/

zhao1163’s picture

It works for me!
Thank you very much.

almarma’s picture

It worked for me too!!!

At first, I just followed your link, keeping some modifications I did in .htaccess and It didn't work. As this one:

RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]

But after reverting it to the original code:

RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

the clean URLs works perfectly!!!

pizangdesain’s picture

this error appear when i do your way

Warning: mysql_pconnect() [function.mysql-pconnect]: Too many connections in /home/freehost/new_encoded.php on line 23

Warning: mysql_select_db() [function.mysql-select-db]: Too many connections in /home/freehost/new_encoded.php on line 24

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/freehost/new_encoded.php on line 24

Warning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/freehost/public_html/members/analytics.php on line 9

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/freehost/public_html/members/analytics.php on line 9

Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/freehost/public_html/members/analytics.php on line 10

Warning: Cannot modify header information - headers already sent by (output started at /home/freehost/new_encoded.php:23) in /home/freehost/public_html/members/analytics.php on line 12

ow... great
im doing successful..
just remove # in RewriteBase /
and it worked...

noxprime’s picture

Thanks !!

moropo’s picture

I got confused with the login box. Beware that the credentials are domain, and domain password (which is different from account password).

Having said this, everything worked really fine. Thanks a lot.

kpshubert’s picture

Just another "thank you" here.

I had been wanting to disable the analytics anyway (for personal development but thought it was "part of the package.")

I don't know if just changing the RewriteBase would have been sufficient as I did away with the analytics regardless.

I will point out that, if you have installed Drupal in a "sub directory" the RewriteBase directive should be based on that sub, not the "root" (so I have my Drupal installed in /Drupal and as a result my directive ends up being "RewriteBase /Drupal").

Thanks again!