Solved

Disable, then Enable Clear URL's

Posted on 2013-12-09
4
343 Views
Last Modified: 2013-12-09
The issue I am having is that the user login URL "www.somesite.com/?q=user" was never issued a clean url such as "www.somesite.com/user".

I want to disable clean URL's and then re-enable them to try and fix the error however I do not want to mess up any of the other Clean URL's that have already been generated.

Is this a valid concern? Do I run a risk of messing up other clean URL's by doing this?

Thanks,
Joe
0
Comment
Question by:jcaprio
  • 2
4 Comments
 
LVL 17

Expert Comment

by:nanharbison
ID: 39706783
My experience with clean URLs is that if you forget to enable them, all the links you have created so far will not be clean, so you would have to go into the structure->Menus->whatever menu you are dealing with and fix them. Maybe there is an easier way, I am not sure.
Is your logged in user page clean? I looked at structure-> menus, there is a user menu, but you can't change the links. I wonder what would happen if you disabled (delete is not an option) the My Account, and create a new one with a clean URL, or create a new page called user and set the link to be /user.
So, what would happen if you disabled and re-enabled clean URLS? I am not sure, but if you back up your database right before you make the changes, you can always restore it (with the Backup And Migrate module, maybe you are already using it)
0
 
LVL 17

Expert Comment

by:nanharbison
ID: 39706785
Oh wait, ONE MORE THING - do this first - clear the caches in the performance section of the configuration page.
0
 
LVL 13

Accepted Solution

by:
Arrow_1 earned 500 total points
ID: 39707452
We're talking about 2 separate but interrelated systems. There is the clean url system and the url alias system. The clean url system rewrites the url to essentially just remove the ?q= from your path. The url alias system is used when defining custom paths to nodes. For example, if you added an alias for "about-us" for a node, you could now access that node via example.com/?q=about-us. Enabling clean urls would then allow the same page to be accessed via example.com/about-us. That said, disabling clean urls will not affect your aliases. The user page however does not have an alias. If clean urls are working at all, /?q=user and /user should be interchangeable since, like I mentioned, all clean urls really does is remove the /?q= part. If clean urls are working for you on other pages, but not for /user, I'm guessing there is another problem that we need to discover. Do you get an error when you try to access /user? Also, make sure there is not a "user" directory in your Drupal directory.
0
 

Author Comment

by:jcaprio
ID: 39707483
Holy cow Arrow_1, you solved it!

There was a "user" directory in my drupal install probably put there by some other developer!

Great catch!

Joe Cap
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

To effectively work with Diskpart on a Server Core, it is necessary to write some small batch script's, because you can't execute diskpart in a remote powershell session. To get startet, place the Diskpart batch script's into a share on your loca…
I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now