Today i have transferred my d7 site to a new ubuntu vps, then in the Apache config files i made this change:
AllowOverride None to
AllowOverride All and now d7 site is working under clean url.
While transferring the website i have disabled the clean url option from the
admin/config/search/clean-urls, but here is the difficulty. Now clean url works but in order to enable clean url when i click on the "Run the clean URL test" button then it shows "The clean URL test failed." though it is working :/
I have cleared all the cache data with no luck.
Now what are alternative ways to enable clean url manually in d7?