Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A "Uniform Resource Idendifier" identifies a resource on a network.
3
votes
Google keeps indexing /comment/reply URL
I would try adding
RewriteCond %{HTTP_USER_AGENT} ^Googlebot
RewriteRule ^comment/reply/$ - [G,L]
RewriteRule ^comment/reply/(.*) - [G,L]
to .htaccess or Apache config to inform spiders that the li …
2
votes
Accepted
Hiding the site domain name from the content writers
As long as you have your server configured properly (ie, have your ServerName and ServerAlias directives set right for Apache), then this should work our of the box as long as you don't explicitly set …
17
votes
Accepted
Why are tokens added to image URLs?
This was a change that was introduced in Drupal 7.20, which addressed a denial of service vulnerability:
Drupal core's Image module allows for the on-demand generation of image derivatives. This c …
0
votes
Accepted
Why NOT to use Clean URLs?
My unconfirmed hypothesis is that this setting was still available through Drupal 7, even on servers that properly support rewrites, was to provide backward compatibility.
There are scenarios where y …
0
votes
Accepted
Difference between router path and link path?
Pro Drupal Development, Second Edition describes them as:
menu_links.link_path is the Drupal path or external path this link
points to.
menu_links.router_path is for links corresponding to …
2
votes
Dealing with absolute paths while on localhost
You should really use url() and l() as much as humanly possible. If you look at the source, you will see the use of base_path to tack on the proper prefix for where you have Drupal installed. This d …
1
vote
Accepted
Drupal, Crawlers, and Migrating from a Query string based site to a Clean URLs site
You need to handle this in your httpd.conf or .htaccess before Drupal handles it.
Your best bet is to come up with some rewrite rules and 410 Gone them. Something like this
RewriteEngine On
Rewrite …
1
vote
Accepted
How to turn off url aliases on dev site?
I think the problem is that the {url_alias} still has the aliases in it.
My suggestion would be to take a backup, then delete a few manually from "admin/build/path" (Drupal 6) or "admin/config/search …
1
vote
Accepted
How can I set a response URL to use https?
The best way to handle this is when the user requests the JSON over HTTP, redirect it to HTTPS, and then the response will come back as HTTPS.
The Secure Pages module does just this. It will let you …
1
vote
Accepted
Full path in the menu
I would try the following.
Take a backup of the database. Backup and Migrate makes this easy.
Make sure core and modules are up to date, especially Pathauto and Token.
Browse to admin/config/search …
8
votes
Accepted
Proper way to get the base path when including an image from a module?
Drupal core uses file_create_url() for internal images like this (eg, the default favicon.ico handling in includes/theme.inc).
This ensures that hook_file_url_alter() gets called (the CDN module does …
1
vote
httpd.conf clean urls issue
It is hard to tell what your exact problem is, but the default .htaccess does more than just redirect requests to index.php. It
Protects certain directories and files from being accessed
Set up saf …
2
votes
Accepted
How do I use .htaccess to trigger mod_rewrites before D7's Clean URLs take over?
Personally, I would see if the Redirect module works for your needs. Is it basically a UI interface for making 301 redirects. Off the top of my head, though, I don't recall if it will work with patt …
0
votes
Views insert current page node id to image link url
If you have a Contextual Filter in place for Content: Nid that is pulling in the nid from the currently viewed page, can
Add a field for your image
Choose Image for the formatter. Configure the ima …
5
votes
How do I use Url::setUnrouted() in a custom module?
It is used by the static constructor Url::fromUri() when the URI passed as argument isn't a route. …