I have launched a site built in Drupal 8. When building the site the node/2 was assigned as the home page.
Now when I search for the site in Google I see in the results the node in the URL:
e.g. www.domain.com/node/2
I've never seen this before. Is there a way to not get /node/2 indexed?
you can use drupal's pathauto module [https://www.drupal.org/project/pathauto]
where you can set your url by using token also.
Related
I installed Drupal 7 and developed a basic site for a friend (http://www.misterklean.org.uk)
It was working lovely, then I noticed months later that every single link on the site (including admin links like admin login!) are being redirected to the homepage.
I contacted my hosts who are refusing to help, saying that it's a scripting problem. The htaccess file hasn't changed since I initially uploaded it - and I've tried re-uploading a default htaccess file which I know works on another of my drupal sites (same hosting company)
I've looked at the server error log file and can't see anything since I'd finished developing the site.
I can post the htaccess file here if people think it might help.
you have not enable the clean URL on the server. so you need to disable the Clean URL form Drupal Admin or database.
you can view the pages like below:
http://www.misterklean.org.uk/?q=clients
http://www.misterklean.org.uk/?q=payment-options
http://www.misterklean.org.uk/?q=enquiries
We have a website set up using the non WWW version of the website. At the moment when you access the WWW version of the domain it seems to redirect to www.ourdomain.com/index.php?p=index.html.
We are seeing the homepage template but with errors. (e.g. Images aren't loading). Does anyone know what would be the best way to fix what is happening or the potential causes.
You can use your browsers web inspector tools to see why assets like images aren't loading. Quite possibly it's because they are trying to load from the wrong domain.
If you didn't set the site URL in /craft/config/general.php then the URL set in your admin site settings will be used, so check that is correct first.
Removing the index.php?… part is covered in detail in Craft's Documentation so not worth repeating here.
Does anyone have any approaches for switching from Hashes to the HTML5 History API (which is done through Ember's API 1.0.0)? I have an SP site in which the default.aspx page loads Ember then routes currently are off of the root by using hashes ex: http://webserver/#/home.
I implemented a solution using App.Router's location and rootURL (shown above). In addition I used IIS Rewrite rules to perform redirects if a user navigates directly to /home (requesting http://webserver/home redirects the user to http://webserver/pages/default.aspx/home). Ultimately what I'm trying to do is remove "/pages/default.aspx" from being present in window.location.pathname. The problem is that Ember is loaded from default.aspx so none of the other routes work unless the rootURL is in place.
Anyone have any suggestions?
Thanks!
I am new to drupal.
I started ctreaing site but facing problem in
how do set my first page in drupal
eg:
when user type
www.mysite.com
he should redirect to first page....
In Drupal admin.
Go to Site config -> Site Information
here you can tell Drupal what page to use as the home page.
You may want to setup a specific node before you do this so that that node is your home page.
Having a very strange issue which I hope you can help me with.
No errors in Apache logs. I am running a Drupal6 site, with only a few images that are failing to display.
The site's url is configured as a subdomain, i.e. in sites, directory domain.com.insurance contains all the drupal files, modules, etc.
Using Firebug their relative URLs are set to:
/insurance/files/webfm/auth/insurance_profiles/profile4.jpg
Visiting this file throws a drupal not found page.
The problem here is the URL specified by the developers.
Instead of :
/insurance/files/webfm/auth/insurance_profiles/profile4.jpg
Correct URL is:
/insurance/sites/insurance/files/webfm/auth/insurance_profiles/profile4.jpg
Thats it, hope it helps :)