InMotion Hosting Support Center

Clean URLs in Drupal 6

Category: Drupal 7

2012-11-06 3:17 pm EST

Hits: 789
I am migrating a Drupal 6 site from another host to InMotion.

Clean URLs are working on the old host but not here.

.htaccess file is the same on both hosts.

What can I do to get clean URL's working here?

I'm accessing the site through the temporary URL because I need to test it before updating the DNS. In what may be related, the site is also not accessing files (images) in my sites/default/files/ folder correctly either. ARe both these issues related to the temp URL?


You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by User


43,761 Points
2012-11-06 3:27 pm EST
Hello ElliotDiamond,

With CMS tools, it is very common for domains using a Temp URL to not perform properly with regard to certain links and clean URLs. This is due to the pathing structure. You can test this, however, by making a change to your hosts file. This allows you to use your domain name as you normally would as long as you have the mod in place. Below are some links to making this change so you can see the effects.

Hosts File Mod in Windows

Hosts File Mod on a Mac

Best Regards,
Scott M

You must login before you can post a comment about this answer.



2013-04-12 5:33 pm EST
I followed suggestion to modify 'RewriteBase /' in .htaccess.

I included /~userna5 from the temp URL.

Example: Temp URL - use
RewriteBase /~userna5

You may need to comment out RewriteBase / when you update the DNS.

Hope this helps.

You must login before you can post a comment about this answer.

Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!