Solved

Modify URL in Drupal Site?

Posted on 2013-05-20
4
244 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JSON Encoding problem breaks calendar 13 547
Drupal 6.x "Log In" link 3 352
drupal 4 132
Database scheme inconsistant warning 1 101
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 …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 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