Solved

Disable, then Enable Clear URL's

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Alternative access for remote users 6 38
Windows Update Repository 5 39
Expand C partition 13 19
DNS Scavenging configuration 5 15
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
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 the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
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…

707 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

15 Experts available now in Live!

Get 1:1 Help Now