Solved

Disable, then Enable Clear URL's

Posted on 2013-12-09
4
350 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SBS 2007 remove AD ? 10 61
DHCP scope restore question Server 2003 to 2012R2 6 59
Reading the Web.Config using IIS 7.5? 4 36
Windows Folder Permissions 9 46
I was asked if I could set up a fax machine so that incoming faxes were delivered to people's Exchange inboxes and so that they could send faxes from their desktops without needing to print the document first.  I knew it was possible but I had no id…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

803 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