Solved

Modify URL in Drupal Site?

Posted on 2013-05-20
4
235 Views
Last Modified: 2013-06-04
(I'm using the OpenPublic distro)

Currently my site uses the default URL like this:

http://www.mysite.com/?q=site-page/serving-veterans-and-military-families

I want it to be this:

http://www.mysite.com/site-page/serving-veterans-and-military-families

1) What's the best approach?
2) Can I enable for all my pages?
3) Going forward, how do I enable it so it doesn't use ?q=
4) If I have linked to ?q= will those links be broken after this change?
0
Comment
Question by:sandshakimi
  • 2
4 Comments
 
LVL 9

Expert Comment

by:BlueYonder
ID: 39180953
Here are instructions how to use clean urls in drupal, http://drupal.org/node/15365.
0
 
LVL 12

Assisted Solution

by:junipllc
junipllc earned 250 total points
ID: 39181686
1. Use "clean URLs," as specified by BlueYonder

2. Yes, and you should. It is good for SEO as well as overall niceness.

3. That's the same as #1, actually.

4. No, they will not. I would recommend, though, that you install the Global Redirect module. It will redirect any users using the ?q= paths to the actual, aliased, clean paths. That way you will have only one (called "canonical") URL for each page. Having multiple URLs for a page or piece of content is discouraged, as Google may consider it duplicate content.

SEO aside, it's definitely best practice to do all of the above. It looks like you may already have the Pathauto module installed as well, but if you don't, that's definitely another that is a standard install on my list.

I didn't want to usurp the question, or step on BlueYonder's toes. I just wanted to add to the answer a bit.

Cheers,

Mike
0
 
LVL 17

Expert Comment

by:nanharbison
ID: 39182946
You should install and enable pathauto module as well, which automatically uses the page title as the URL, which search engines like.
0
 
LVL 17

Accepted Solution

by:
nanharbison earned 250 total points
ID: 39182951
If you have pages already created before enabling clean URLs, their URLs are not affected, you would have to go in and change those.
Also, if your site doesn't pass the test to allow clean URLs, let us know, we can tell you how to fix it.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

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