I have a host who does not allow .htaccess file in the main root for the drupal install. I must have it in the sides>default>files however but i had to empty out everything for it to not give me an error.
I am trying to enable clean url's with little success.
I have copied this: $conf['clean_url'] = 1;
Into the settings.php file which has allowed me to enable the clean url's but now I get a error
404 Not Found
The requested URL /new/wms/principals was not found on this server.
I have tried various combinations of Rewrites in the .htaccess file but none seem to work.
RewriteEngine on
RewriteCond %{HTTP:Host} ^(?:www\.)?example\.com$
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
PLEASE! Does anyone have any suggestions on how I can get this to work?
New note: the non-clean urls show up as index.php?q=
I read in another thread this is not apache?
Comments
=-=
personally, I'd move hosts. There are far too many hosts who don't have these types of restrictions.
I would be gone in a second,
I would be gone in a second, but it's my clients host and they do not want to switch.
Write it in your contract
Just something for the future, I always have it written in my contract with the client that the site must be on LAMP, access to root with ssh, mod_rewrite enabled and direct editing of .htaccess at the root of the site. I know this sounds a bit extreme, but having these conditions have helped me several times over. It also makes your more job efficient and streamlined.
Danny Englander | Twitter | Instagram
=-=
you will have to pastebin the hosts .htaccess file and link to it here.
is drupal installed in the root?
have you tried copying and pasting drupals .htaccess file to the hosts .htaccess file?
client may have to forego clean urls if they aren't willing to move from the host.
I can't access their
I can't access their .htaccess file.
drupal is installed on the root
=-=
not sure what you have left that you can do at this point.
.htaccess and rewrite rules are part of apache. to pass the clean urls test the server must have mod_rewrite enabled.