The url-rewrite tag has no wiki summary.
2
votes
1answer
33 views
Force redirect from HTTPS to HTTP in Drupal 7 Multitsite?
I'm trying to serve a Kaltura video running on CentOS 6+ on one server, by plugging the Object code for embedded video inside a node body (or even using the Kaltura Drupal module), running on a Drupal ...
0
votes
2answers
41 views
$base_path is not added to AJAX URL request in login form
I have a D7 site in a subfolder, and would like for AJAX requests to find the correct docroot folder.
When trying to login from localhost/mysite/user, AJAX sends a request to localhost/system/ajax. ...
-1
votes
0answers
16 views
Rewrite imagecache URL
i want to rewrite the url of some of my pictures with a clean url to reference them.
I use image cache to resize & scrop them so i have that kind of url :
base_url + ...
0
votes
0answers
12 views
rewrite the url output of the date module date filter criteria
I have an optional filter criteria of type date created, that uses the date module. I need to clean up the url format from:
http://www.example.com/gigs?month[value][date]=2013-04
to something ...
0
votes
1answer
17 views
What is the Correct UID path whilst using Ubercart Affiliate in Custom DB
I'm currently building a various user dashboard using my own custom hacked Workbench (WB) & cloned from one Master for end users (3 roles ex SU). WB chosen over Homebox as that was taking me too ...
0
votes
2answers
63 views
Drupal 7 Website on iIS - URL Rewrite trouble
I have a website develop on Drupal 7 on IIS + MSSQL. I cannot update or create content when clean urls is active. The website return to edit form when i submit any change or new content.
If the ...
1
vote
1answer
33 views
how do I change the url based on a theme?
On some occasions, I've seen Drupal able to detect things like language and rewrite the url accordingly, so your actual displayed url reflects the detected value (like from ...
0
votes
1answer
18 views
Removing prefix for default language breaks all the link
Since I built the site I always used language prefix "en" for my site. English is my default language.
The thing is our SEO Expert said that this is content duplication for Google and we might get ...
0
votes
1answer
50 views
How to alias / rewrite path to theme?
The paths to css/js/images in a theme look like /sites/mysite.org/theme/*
Is there a way to rewrite those paths to – let's say – /mytheme/* ?
1
vote
1answer
42 views
Adding text to a field before save (Drupal 7)
I run into a situation where I need to wrap text inputted into a field before it is saved. I'm not sure the best way to do this, seems pretty straightforward but I'd like to find the "recommended ...
0
votes
0answers
37 views
Evaluate URL to set values in webform
I am sending a link for a survey (webform 3.x) to users. Based on a variety of information, they receive a link in the format http://www.domain.com/group/userid. I'm able to retrieve the /group ...
4
votes
1answer
67 views
Make variables outside of node available to pathauto
I'm trying to port a website over to Drupal 7. The structure consists of locations which have an entity reference to a region which has an entity reference to a country:
...
1
vote
2answers
91 views
How to rewrite image url in nodes?
I need to rewrite all image urls inside certain node types into custom-defined urls. For example, this image:
<img src="/sites/default/files/u22/pretty.jpg" width="678" height="1024" ...
3
votes
1answer
62 views
When a user goes from one page to another, how can I see where they came from and where they are going?
I need to hook into whenever a user moves from one page to another. I need to know where they are coming from and where they are going. My scenario is that anytime that a user heads to a certain ...
0
votes
2answers
130 views
how can I change the admin url?
Is it possible to have the administration pages on a different place than /admin?
so something like: www.mysite.com/someotheradminlocation
I don't want the admin location to be guessable by hackers.
...
0
votes
2answers
47 views
Migrate Drupal7 to local, user login link redirect to live, how to redirect it to local?
I have changed cookies name and base URL for my local environment, I have also emptied all cache tables, but still it redirects to the live site.
Like http://server1/mysitename/user to ...
0
votes
2answers
73 views
A sub-domain for each user blog
Is there any module, or a way to get a user blog in a separate sub-domain, such as user1.example.com for user1, and user2.example.com for user2?
0
votes
1answer
71 views
Case Sensitive Url in drupal7
I have some issues with the url's while doing the migration to new site.
content has following url after migration - www.example.com/attachment/Att.doc
But attachment folder has att.doc.so the url ...
0
votes
2answers
58 views
How to rewrite paths delivered by solr search (to view instead of node)
How can i rewrite the path of results delivered by solr search? Or is it possible to configure it the way i need?
The content of that particular website is organized in views. I do not want users to ...
0
votes
1answer
274 views
Remove language prefix from files URL
I have a drupal installation in a sub folder (demos/drupal) and it supports two languages (english -default- & arabic). I imported the drupal content from an old site. My problem is that the ...
1
vote
1answer
35 views
Multiple sites routed to one codebase has the subdirectory name as prefix on the links
I am trying to redirect multiple drupal sites to same code base using following htaccess file
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?site.com$ [NC]
RewriteCond %{REQUEST_URI} ...
0
votes
0answers
221 views
Drupal 7 - URL Redirection [closed]
I have searched Google all day for an example to do the following type of rewrite using an .htaccess file, but I've come up with nothing. I've read through "writing" rewrite rules, but I'm not finding ...
2
votes
2answers
248 views
Setting up regex-style rewrite rules within Drupal?
I have a couple of legacy rewrite rule redirects that I've traditionally put in .htaccess. For instance, paths are of the format:
story/[story:title]
And paths like:
story/[story:nid]
redirect to ...
0
votes
1answer
62 views
How to attach username at the end of url?
Suppose I have a site www.example.com with many users in it. Now user "abc" is logged in, then the username should be attached at the end of that URL, like: www.example.com/abc
Also I have fix ...
2
votes
2answers
109 views
What do we hook in Drupal 6 for inbound URL rewrites?
Where conditional rewrite is desired, not supported by existing path modules, and where we'd prefer to stay out of .htaccess, where might we hook in Drupal 6?
Along the lines of Drupal 7 ...
2
votes
2answers
939 views
The requested URL /node was not found on this server
I am setting up Drupal locally in my Ubuntu.
I used drush to download and install Drupal 7. (using mysqladmin to create the database and the user)
All worked well, I have the default homepage, but ...
0
votes
2answers
104 views
Removing /home url
A little tricky this one --- I got handed this site and they have somehow messed
the theming up on the home page, so they recreated a new home and redirected it
there - both in the config section and ...
0
votes
1answer
61 views
How to set the language to Swedish when users visit example.se and to French when visiting example.fr?
I have a Drupal 7 website in 18 languages. The main URL is example.com and 18 other international domains are domain aliases of the main URL (example.de, example.fr, example.se, ...).
The Language ...
0
votes
1answer
112 views
How can I generate a link from a text field and a URL in a View?
I have an entity type consisting of 2 fields, a description field and a URL field, and I want to create a view with a single column which consisting of the description outputted as a link to the URL, ...
0
votes
0answers
193 views
How to rewrite the url of the core contact form?
Is there any way to change the url of the contact form with an alias?
Instead of user/%/contact I would like to have role/a_profile_field/contact
Pathauto does not provide this option.
Thanks in ...
0
votes
1answer
292 views
Profile2, url rewrite
How do I create a path like this www.example.com/PROFILE_NAME/FULL_NAME
FULL_NAME is a profile2 field.
With pathauto you cannot modify profile2 entity.
Thanks in advance
0
votes
1answer
843 views
Special type of nginx redirect: redirect only if $request_uri is empty
I need a special type of redirect for a Drupal 6 website. I'm thinking that the best place to do this is in an nginx config file, but please correct me if I'm wrong. I know I can do it in a template ...
1
vote
1answer
109 views
Rewrite photo field URLs
Every time I download a new copy of the live database to my local site I also have to download the photos (several GB).
Is there an easy way to write the URL for one "photo" field (type image) to ...
2
votes
1answer
786 views
Drupal clean URLs not working from subdirectory
I'm not sure if this belongs here or in serverfault, so feel free to flag it if necessary. I have a server with a drupal installation at /drupal. I want the URL www.example.com to point to ...
1
vote
3answers
925 views
Right URL rewrite after 404 redirect
Is it possible to rewrite the url in a 404 redirect according to the page which is actually being displayed ?
For example, if the non-existent url "/fzenk" is requested, and you have configured the ...
1
vote
1answer
238 views
Drupal Relative Path
I am using Drupal 7. The website I am on was configured previously. My goal is to add an external link to a page. However, i am having trouble. Every link I add to any page is read as a relative link. ...
0
votes
1answer
1k views
Rewrite link on other field in Views
I'm using Drupal 7 and Clean theme. My main module is Views. And created 2 field in a content type and listed via Views on page.
I want, rewrite a field link on a other field.
e.g.
My Field:
Head: ...
1
vote
0answers
405 views
URL rewrite problem in views 7.x-3
I face a problem with URL rewrite in views. In the Re-Write Results section I choose "Output this field as a link" and I provide the following Link path
node/[nid]&month=[field_month] (nid is the ...
5
votes
2answers
2k views
Redirect /user/login to HTTPS, all other requests to HTTP
I'm using Drupal 7. The login page for my users is located at /user/login, so the default login path. I need that page to be encrypted using SSL so people aren't transmitting their passwords in the ...
1
vote
1answer
232 views
Drupal base_url incorrectly writing extra subdomain
We have a basic drupal multi-site installation on a RHEL (RedHat) server.
For some reason when viewing the site, the asset URLs (CSS/JS) all point to the wrong subdomain.
Our site URL: ...
0
votes
1answer
587 views
Cache page based on cookie value and URL
I am working on a site that is multi-lingual as well as multi-country. This means that pages will show content differently depending on a country cookie that is set when the user first visits the ...
2
votes
3answers
2k views
Base url issues and subdirectories
I have a drupal site at http://example.com and a development version of the same site at http://another.example.com/subdir. When I'm working on the development version, content that references ...